Project

kolla

0.0
The project is in a healthy, maintained state
Zero-dependency CLI that parses db/schema.rb and answers 'what's in this table?' in under a second — without booting Rails.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

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