Module: Cassie::Statements::Statement::Assignments
- Extended by:
- ActiveSupport::Concern, Mapping::ClassMethods
- Includes:
- Mapping
- Defined in:
- lib/cassie/statements/statement/assignments.rb
Overview
Provides support for a set of CQL assignments and building the insert/update clause and argument list for a cql statement
CQL Relation terminology:
"INSERT INTO table (id, username) VALUES (?, ?);", [1, 'eprothro']
identifiers: [‘id’, ‘username’] terms: [‘?’, ‘?’] arguments: [1, ‘eprothro’]
"UPDATE table SET id = ?, username = ? WHERE...;", [1, 'eprothro']
identifiers: [‘id’, ‘username’] terms: [‘?’, ‘?’] arguments: [1, ‘eprothro’]
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#assignments_args ⇒ Object
The enumeration of current assignments’ parameters that will be used to build Assignment objects when the statement is built.
Methods included from Mapping::ClassMethods
Instance Method Details
#assignments_args ⇒ Object
The enumeration of current assignments’ parameters that will be used to build Assignment objects when the statement is built
72 73 74 |
# File 'lib/cassie/statements/statement/assignments.rb', line 72 def assignments_args self.class.assignments_args end |