• Stars
    star
    254
  • Rank 154,466 (Top 4 %)
  • Language
    CSS
  • Created almost 12 years ago
  • Updated almost 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A loyal data retriever for your Rails development databases.

Labrador v0.2.1

A loyal database (agnostic) client for your Rails development databases.

Installation

Labrador can be installed by a single copy paste of aggregated shell commands. Detailed instructions can be found on labrador's homepage.

Upgrading

$ cd ~/.labrador
$ git pull origin master
$ mkdir -p tmp/
$ touch tmp/restart.txt

Features

  • Automatic intregation with pow, allowing you to hit (myapp.larabdor.dev) and be up and running
  • Listing/paging, update, and delete support of records/documents across all your development tables/collections.
  • Easy schema viewing for all your SQL database tables
  • Automatic Rails application discovery within the current app's parent folder for easy app switching
  • Manual database connections for non-Rails application support by simply visiting labrador.dev/

Supported Database Adapters

Labrador supports most mainstream database adapters and Rails database configurations. If you are using ActiveRecord, Datamapper, or Mongoid with standard database.yml or mongoid.yml configurations your databases will be connected to automatically.

  • Postregsql
  • MySQL
  • SQlite
  • MongoDB
  • RethinkDB

OSX Support

Zero setup is required after installation when pow is installed. Simply install and then load up myapp.labrador.dev.

Other Linux/Unix Support

Add this to your .bash_profile or equivalent

alias labrador-start="cd $HOME/.labrador && bundle exec rails s -e production -p 7488"

After the server is started, you can then load up localhost:7488/~/Path/to/myapp

Roadmap

  • Manual database connections (completed in v0.2.0)
  • Arbitrary queries
  • Record creation
  • Redis support

Testing

rake test

Add adapter_test configurations with credentials for each adapter to config/database.yml. ie:

adapter_test:
  mysql:
    database: labrador_test
    host: localhost
    user: username
    password: password
    port: 3306
  postgres:
    database: labrador_test
    host: localhost
    user: username
    password: password
    port: 5432
  mongodb:
    database: labrador_test
    host: 127.0.0.1
    user: username
    password: password
    port: 27017
  rethinkdb:
    database: labrador_test
    host: localhost
    port: 28015

Note - The sqlite adapter uses a local .sqlite3 file in test/fixtures.

Known Limitations

Labrador uses pure ruby adapters for mysql and postgres to avoid incompatibilities with users lacking postgres or mysql headers for native extension compilation. These implementations are unable to establish database connections over SSL.

More Repositories

1

render_sync

Real-time Rails Partials
Ruby
1,398
star
2

phoenix_chat_example

JavaScript
680
star
3

phoenix_live_view_example

Elixir
534
star
4

todo_trek

Elixir
317
star
5

elixir_express

Elixir
283
star
6

atlas

Object Relational Mapper for Elixir
Elixir
214
star
7

mailgun

Elixir Mailgun Client
Elixir
193
star
8

phoenix_haml

Phoenix Template Engine for Haml
Elixir
156
star
9

dot_emacs

evil-mode
Emacs Lisp
94
star
10

single_file_phx_bumblebee_ml

Elixir
91
star
11

elixirconf_training

JavaScript
73
star
12

single_file_phoenix_fly

Elixir
55
star
13

sketchpad

Elixir
42
star
14

channelsac

Ruby
31
star
15

sync_example

Ruby
24
star
16

phoenix_vs_rails_showdown

Ruby
22
star
17

phoenix_presence_example

Elixir
14
star
18

semantic-ui-brunch-phoenix

Elixir
13
star
19

phoenix_brunch_react

Elixir
11
star
20

dot_vim

Vim Script
11
star
21

ex_copter

Elixir client for the Parrot AR 2.0 Quadcopter
Elixir
10
star
22

phoenix_takes_flight

CSS
9
star
23

metrics

Elixir
8
star
24

blinky_presence

Phoenix Presence with Nerves example
Elixir
8
star
25

file_presenter

Elixir
6
star
26

gitit

Introspect project directory and launch browser to github repo page
CoffeeScript
6
star
27

bclose.vim

Delete a buffer without closing the window
Vim Script
6
star
28

riak_tasks

Simple riak cluster bootstrap and management for dev and test environments
Elixir
5
star
29

rumbl-example

Elixir
5
star
30

pubsub_stress

JavaScript
5
star
31

phoenix_brunch_vue

Elixir
5
star
32

phlux

JavaScript
4
star
33

sublime-files

Sublime Text 2 settings and packages
3
star
34

hex_issue_example

Elixir
2
star
35

phoenix_pubsub_federation

Elixir
2
star
36

coffeekup_rails

Ruby
2
star
37

phoenix_render_example

Elixir
2
star
38

phoenix_federation_server

Elixir
2
star
39

fishcakez_channel_example

Elixir
2
star
40

historian

Ruby
1
star
41

validate

Coffeescript client-side validation library
CoffeeScript
1
star
42

dotfiles

Shell
1
star
43

phoenix_debugger_bug

Elixir
1
star
44

riaktor

Coming soon
1
star
45

live_eex

Elixir
1
star
46

my_plug

Elixir
1
star
47

chrismccord.com-old-

JavaScript
1
star