Module: Cassie::Statements::Statement::Assignments

Extended by:
ActiveSupport::Concern, Mapping::ClassMethods
Includes:
Mapping
Included in:
Inserting, Updating
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

Methods included from Mapping::ClassMethods

map_from

Instance Method Details

#assignments_argsObject

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