Skip to content

antonysastre/kolla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kolla

Zero-dependency CLI that parses db/schema.rb and answers "what's in this table?" in under a second — without booting Rails.

Installation

gem install kolla

Usage

List all tables:

$ kolla
users
posts
comments

Inspect a table:

$ kolla users
name (string, null: false)
email (string)
life_in_seconds (bigint, default: 0)
admin (boolean, default: false)
created_at (datetime, null: false)
index: [email] (unique)
index: [name]

Use a custom schema path:

$ kolla -f path/to/schema.rb users

Options

-h, --help       Show help
-v, --version    Show version
-f, --file PATH  Path to schema.rb (default: db/schema.rb)

What gets filtered

Rails internal tables (action_*, active_*) are excluded from the table list.

Development

git clone https://github.com/antonysastre/kolla.git
cd kolla
bundle install
rake test

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages