Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/readysteady/dba
Ruby command line tool for working with development databases
https://github.com/readysteady/dba
mysql postgres ruby sequel sqlite
Last synced: 3 months ago
JSON representation
Ruby command line tool for working with development databases
- Host: GitHub
- URL: https://github.com/readysteady/dba
- Owner: readysteady
- License: gpl-3.0
- Created: 2019-10-22T09:35:42.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-11T15:40:22.000Z (10 months ago)
- Last Synced: 2024-07-26T23:46:28.454Z (4 months ago)
- Topics: mysql, postgres, ruby, sequel, sqlite
- Language: Ruby
- Homepage: https://rubygems.org/gems/dba
- Size: 35.2 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# dba
Ruby command line tool for working with development databases.
## Installation
$ gem install dba
Note: you may also need to install the pg, mysql2, or sqlite3 gems unless you
already have them in your environment.You can connect to any database supported by [sequel](https://rubygems.org/gems/sequel).
## Usage
$ dba
Usage: dba COMMANDdba diff URL
dba dump TABLE EXTENSION
dba edit TABLE IDENTIFIER
dba find TABLE IDENTIFIER
dba indexes [TABLE]
dba load PATH
dba pull TABLE URL
dba sample TABLE [COLUMN]
dba schema [TABLE]
dba select TABLE COLUMN VALUE
dba tables## ERROR: could not find database
In order to determine which database to connect to dba checks `.env` for a
`DATABASE_URL` variable, `config/database.yml` for your Rails development
database config, postgres on localhost (if it's running), and the current
working directory for any `.sqlite3` files.If your development database does not match any of these criteria please
open a pull request or issue describing your development database setup,
but first make sure you're running the command from the correct directory.