Class: QueryBuilder::CQL::Contexts::Trigger
- Defined in:
- lib/query_builder/cql/contexts/trigger.rb
Overview
Describes the user-defined trigger for the table
Instance Method Summary collapse
-
#create ⇒ QueryBuilder::Statements::CreateTrigger
Builds the ‘CREATE TRIGGER’ CQL statement for the current trigger.
-
#drop ⇒ QueryBuilder::Statements::DropTrigger
Builds the ‘DROP TRIGGER’ CQL statement.
-
#to_s ⇒ String
Returns the full name of the type.
Instance Method Details
#create ⇒ QueryBuilder::Statements::CreateTrigger
Builds the ‘CREATE TRIGGER’ CQL statement for the current trigger
26 27 28 |
# File 'lib/query_builder/cql/contexts/trigger.rb', line 26 def create Statements::CreateTrigger.new(context: self) end |
#drop ⇒ QueryBuilder::Statements::DropTrigger
Builds the ‘DROP TRIGGER’ CQL statement
34 35 36 |
# File 'lib/query_builder/cql/contexts/trigger.rb', line 34 def drop Statements::DropTrigger.new(context: self) end |
#to_s ⇒ String
Returns the full name of the type
18 19 20 |
# File 'lib/query_builder/cql/contexts/trigger.rb', line 18 def to_s [table.keyspace.name, name].join(".") end |