Module: Cassie::Statements

Defined in:
lib/cassie/statements.rb,
lib/cassie/statements/core.rb,
lib/cassie/statements/query.rb,
lib/cassie/statements/logging.rb,
lib/cassie/statements/execution.rb,
lib/cassie/statements/statement.rb,
lib/cassie/statements/modification.rb,
lib/cassie/statements/execution/errors.rb,
lib/cassie/statements/execution/results.rb,
lib/cassie/statements/statement/limiting.rb,
lib/cassie/statements/statement/pagination.rb,
lib/cassie/statements/execution/consistency.rb,
lib/cassie/statements/statement/idempotency.rb,
lib/cassie/statements/statement/type_hinting.rb

Overview

Contains components related to Cassandra statements, including

  • building with a CQL DSL

  • options for executing built statements

  • executing built statements

  • instrumenting

  • logging (using instrumentation)

See Statements submodules for more information on the responsibilities of these individual components.

See Query, Modification or Definition to see concrete query interfaces implementeing these components.

Defined Under Namespace

Modules: Core, Execution, Logging, Modification, Query, Results, Statement Classes: ExecutionError, RecordNotFound

Class Method Summary collapse

Class Method Details

.default_consistencyObject


2
3
4
5
# File 'lib/cassie/statements/execution/consistency.rb', line 2

def self.default_consistency
  return @default_consistency if defined?(@default_consistency)
  nil
end

.default_consistency=(val) ⇒ Object


7
8
9
# File 'lib/cassie/statements/execution/consistency.rb', line 7

def self.default_consistency=(val)
  @default_consistency = val
end

.default_idempotencyObject


2
3
4
5
# File 'lib/cassie/statements/statement/idempotency.rb', line 2

def self.default_idempotency
  return @default_idempotency if defined?(@default_idempotency)
  true
end

.default_idempotency=(val) ⇒ Object


7
8
9
# File 'lib/cassie/statements/statement/idempotency.rb', line 7

def self.default_idempotency=(val)
  @default_idempotency = val
end

.default_limitObject


2
3
4
5
# File 'lib/cassie/statements/statement/limiting.rb', line 2

def self.default_limit
  return @default_limit if defined?(@default_limit)
  500
end

.default_limit=(val) ⇒ Object


7
8
9
# File 'lib/cassie/statements/statement/limiting.rb', line 7

def self.default_limit=(val)
  @default_limit = val
end

.loggerObject


5
6
7
# File 'lib/cassie/statements/logging.rb', line 5

def self.logger
  @logger ||= Cassie.logger
end

.logger=(new_logger) ⇒ Object


9
10
11
# File 'lib/cassie/statements/logging.rb', line 9

def self.logger=(new_logger)
  @logger = new_logger || ::Logger.new('/dev/null')
end