Class: TableSaw::Queries::PreparedInsertStatement

Inherits:
Object
  • Object
show all
Defined in:
lib/table_saw/queries/prepared_insert_statement.rb

Defined Under Namespace

Classes: Statement

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(table_name, options: {}) ⇒ PreparedInsertStatement

Returns a new instance of PreparedInsertStatement.



10
11
12
13
# File 'lib/table_saw/queries/prepared_insert_statement.rb', line 10

def initialize(table_name, options: {})
  @table_name = table_name
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



6
7
8
# File 'lib/table_saw/queries/prepared_insert_statement.rb', line 6

def options
  @options
end

#table_nameObject (readonly)

Returns the value of attribute table_name.



6
7
8
# File 'lib/table_saw/queries/prepared_insert_statement.rb', line 6

def table_name
  @table_name
end

Instance Method Details

#callObject



15
16
17
# File 'lib/table_saw/queries/prepared_insert_statement.rb', line 15

def call
  Statement.new(name, table_name, sql)
end