Module: DbAgile::Contract::Schema::TransactionDriven
- Included in:
- Utils::Full
- Defined in:
- lib/dbagile/contract/schema/transaction_driven.rb
Instance Method Summary collapse
-
#add_columns(transaction, table_name, columns) ⇒ Boolean
Adds some columns to a table.
-
#create_table(transaction, table_name, columns) ⇒ Hash
Creates a table with some columns.
-
#drop_table(transaction, table_name) ⇒ Boolean
Drops a table.
-
#key!(transaction, table_name, columns) ⇒ Boolean
Make columns be a candidate key for the table.
Instance Method Details
#add_columns(transaction, table_name, columns) ⇒ Boolean
Adds some columns to a table
45 46 47 |
# File 'lib/dbagile/contract/schema/transaction_driven.rb', line 45 def add_columns(transaction, table_name, columns) Kernel.raise NotImplementedError end |
#create_table(transaction, table_name, columns) ⇒ Hash
Creates a table with some columns.
16 17 18 |
# File 'lib/dbagile/contract/schema/transaction_driven.rb', line 16 def create_table(transaction, table_name, columns) Kernel.raise NotImplementedError end |
#drop_table(transaction, table_name) ⇒ Boolean
Drops a table
29 30 31 |
# File 'lib/dbagile/contract/schema/transaction_driven.rb', line 29 def drop_table(transaction, table_name) Kernel.raise NotImplementedError end |
#key!(transaction, table_name, columns) ⇒ Boolean
Make columns be a candidate key for the table.
61 62 63 |
# File 'lib/dbagile/contract/schema/transaction_driven.rb', line 61 def key!(transaction, table_name, columns) Kernel.raise NotImplementedError end |