Class: SQL::Sqlite3::Table
- Defined in:
- lib/gems/dm-migrations-0.9.9/lib/sql/sqlite3.rb
Instance Attribute Summary
Attributes inherited from Table
Instance Method Summary collapse
-
#initialize(adapter, table_name) ⇒ Table
constructor
A new instance of Table.
Methods inherited from Table
Constructor Details
#initialize(adapter, table_name) ⇒ Table
Returns a new instance of Table.
25 26 27 28 29 30 |
# File 'lib/gems/dm-migrations-0.9.9/lib/sql/sqlite3.rb', line 25 def initialize(adapter, table_name) @columns = [] adapter.query_table(table_name).each do |col_struct| @columns << SQL::Sqlite3::Column.new(col_struct) end end |