Sha256: dbb9ebff7d8e1b2159f176de7c01fe2b3ee900b605cd7a4ab484154550dacdb3
Contents?: true
Size: 560 Bytes
Versions: 1
Compression:
Stored size: 560 Bytes
Contents
class Upsert class Row # @private class Mysql2_Client < Row attr_reader :original_setter_keys def initialize(parent, raw_selector, raw_setter) super @original_setter_keys = raw_setter.keys.map(&:to_s) end def quoted_setter_values @quoted_setter_values ||= setter.values.map(&:quoted_value) end def values_sql_bytesize @values_sql_bytesize ||= quoted_setter_values.inject(0) { |sum, quoted_value| sum + quoted_value.to_s.bytesize } + setter.length - 1 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
upsert-0.5.0 | lib/upsert/row/mysql2_client.rb |