class QueryBuilder::CQL::Contexts::Trigger
Describes the user-defined trigger for the table
Public Instance Methods
create()
click to toggle source
Builds the ‘CREATE TRIGGER’ CQL
statement for the current trigger
@return [QueryBuilder::Statements::CreateTrigger]
# File lib/query_builder/cql/contexts/trigger.rb, line 26 def create Statements::CreateTrigger.new(context: self) end
drop()
click to toggle source
Builds the ‘DROP TRIGGER’ CQL
statement
@return [QueryBuilder::Statements::DropTrigger]
# File lib/query_builder/cql/contexts/trigger.rb, line 34 def drop Statements::DropTrigger.new(context: self) end
to_s()
click to toggle source
Returns the full name of the type
@return [String]
# File lib/query_builder/cql/contexts/trigger.rb, line 18 def to_s [table.keyspace.name, name].join(".") end