Sha256: f0d30a5d5d89d6b68a2d9b519f8bade31b76a22e3de13ba1aab30bd12a8e6b2a
Contents?: true
Size: 403 Bytes
Versions: 5
Compression:
Stored size: 403 Bytes
Contents
module RailsDb module Adapters class Sqlite < BaseAdapter def self.execute(sql) t0 = Time.now execute_with_sandbox_if_needed do multiple_execute(sql) end Time.now - t0 end def self.adapter_name 'sqlite' end def self.truncate(table_name) execute("DELETE FROM #{table_name};") end end end end
Version data entries
5 entries across 5 versions & 1 rubygems