Module: QueryBuilder::CQL::Modifiers::With
- Included in:
- Statements::AlterKeyspace, Statements::CreateKeyspace, Statements::CreateRole, Statements::CreateTable
- Defined in:
- lib/query_builder/cql/modifiers/with.rb
Overview
Provides WITH clauses for statements
Defined Under Namespace
Classes: Clause
Instance Method Summary collapse
-
#with(options) ⇒ QueryBuilder::Core::Statement
Adds WITH clause to the statement.
Instance Method Details
#with(options) ⇒ QueryBuilder::Core::Statement
Adds WITH clause to the statement
17 18 19 20 21 |
# File 'lib/query_builder/cql/modifiers/with.rb', line 17 def with() .map { |key, value| Clause.new(column: key, value: value) } .inject(self, :<<) end |