Sha256: 63fd0c066d242e36e34a332ce77372d529ceb8afaf7239f3af8d226e20b3fe14
Contents?: true
Size: 808 Bytes
Versions: 3
Compression:
Stored size: 808 Bytes
Contents
# This source file contains extensions to the abstract adapter. module ActiveRecord #:nodoc: module ConnectionAdapters #:nodoc: # Extensions to the AbstractAdapter. In some cases a default implementation is provided, # in others it is adapter-dependent and the method will raise a NotImplementedError if # the adapter does not implement that method class AbstractAdapter # Truncate the specified table def truncate(table_name) execute("TRUNCATE #{table_name}") end # Bulk loading interface. Load the data from the specified file into the given # table. Note that options will be adapter-dependent. def bulk_load(file, table_name, options={}) raise NotImplementedError, "bulk_load is an abstract method" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems