Sha256: d4730d1bde6cb10b563c660dc492e5c94a731d5ca927a7b9e6fc4b7c61c69292
Contents?: true
Size: 661 Bytes
Versions: 1
Compression:
Stored size: 661 Bytes
Contents
module MassInsert module Adapters class Mysql2Adapter < Adapter # This method is overwrite because the timestamp format to this # database engine does not need precision in nanoseconds. def timestamp_format @timestamp_format ||= "%Y-%m-%d %H:%M:%S" end # This functions calls the necessary functions to create a complete # mysql query to multiple insertion. The methods are in the Abstract # Sql String module. If some method is too specific to this database # adapter you can overwrite it. def execute "#{begin_string}#{string_columns}#{string_values}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mass_insert-0.0.2 | lib/mass_insert/adapters/mysql2_adapter.rb |