RubyGems Navigation menu

gadget 0.0.2

# Gadget Some methods for getting metadata and other deep details from a PostgreSQL database. ## Installation Add this line to your application's Gemfile: gem 'gadget' And then execute: $ bundle Or install it yourself as: $ gem install gadget ## Usage `#tables(conn)` Returns a list of all tables in the schema reachable through `conn`. `#columns(conn, tablename=nil)` Returns a list of all columns in the schema reachable through `conn`. If `tablename` is given, returns the columns in only that table. `#foreign_keys(conn, tablename=nil)` Returns a list of all foreign keys in the schema reachable through `conn`. If `tablename` is given, returns the foreign keys in only that table. `#dependencies(conn)` Returns a structure representing the dependencies between tables in the schema reachable through `conn`. Table A is defined as dependent on table B if A contains a foreign key reference to B. `#tables_in_dependency_order(conn)` Returns a list of all tables in the schema reachable through `conn`, ordered such that any given table appears later in the list than all of its dependencies. ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request

Gemfile:
=

安裝:
=

版本列表:

  1. 0.7.0 November 01, 2016 (9.5 KB)
  2. 0.6.2 February 05, 2015 (9.5 KB)
  3. 0.6.1 September 10, 2014 (9.5 KB)
  4. 0.6.0 March 26, 2014 (9.5 KB)
  5. 0.5.4 March 25, 2014 (8.5 KB)
  6. 0.0.2 January 27, 2014 (7.5 KB)
顯示所有版本(共 19)

Runtime 相依性套件 (1):

pg ~> 0.17.0

Development 相依性套件 (2):

bundler ~> 1.3
rake >= 0

擁有者:

作者:

  • Craig S. Cottingham

SHA 256 總和檢查碼:

=

總下載次數 49,834

這個版本 2,807

版本发布:

授權:

MIT

Ruby 版本需求:

相關連結: