Class: PreparedStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra_migrations/cql-rb-wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, statement) ⇒ PreparedStatement

Returns a new instance of PreparedStatement.



9
10
11
12
# File 'lib/cassandra_migrations/cql-rb-wrapper.rb', line 9

def initialize(client, statement)
  @client = client
  @statement = statement
end

Instance Attribute Details

#statementObject (readonly)

Returns the value of attribute statement.



7
8
9
# File 'lib/cassandra_migrations/cql-rb-wrapper.rb', line 7

def statement
  @statement
end

Instance Method Details

#execute(*args) ⇒ Object



14
15
16
# File 'lib/cassandra_migrations/cql-rb-wrapper.rb', line 14

def execute(*args)
  @client.execute(@statement, *args)
end