class Upsert::MergeFunction::Java_OrgPostgresqlJdbc_PgConnection
@private
Constants
- ERROR_CLASS
Public Instance Methods
execute_parameterized(query, args = [])
click to toggle source
# File lib/upsert/merge_function/Java_OrgPostgresqlJdbc_PgConnection.rb, line 10 def execute_parameterized(query, args = []) query_args = [] query = query.gsub(/\$(\d+)/) do |str| query_args << args[Regexp.last_match[1].to_i - 1] "?" end controller.connection.execute(query, query_args) end
unique_index_on_selector?()
click to toggle source
# File lib/upsert/merge_function/Java_OrgPostgresqlJdbc_PgConnection.rb, line 19 def unique_index_on_selector? return @unique_index_on_selector if defined?(@unique_index_on_selector) @unique_index_on_selector = unique_index_columns.any? do |row| row["index_columns"].sort == selector_keys.sort end end