Module: Dag::Client::Table
- Included in:
- Database
- Defined in:
- lib/dag/client/table.rb
Instance Method Summary collapse
Instance Method Details
#table(tbl_name) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/dag/client/table.rb', line 8 def table(tbl_name) unless table_info = @api.table(@cluster_name, @db_name, tbl_name) raise Dag::Client::TableNotFound.new('table not found') end Dag::Table.new(@api, @cluster_name, @db_name, params: table_info) end |
#tables ⇒ Object
4 5 6 |
# File 'lib/dag/client/table.rb', line 4 def tables Dag::TableCollection.new(@api, @cluster_name, @db_name) end |