module Sequel::Access::DatabaseMethods

Constants

DATABASE_ERROR_REGEXPS

Public Instance Methods

database_type() click to toggle source
   # File lib/sequel/adapters/shared/access.rb
14 def database_type
15   :access
16 end
rename_table(from_table, to_table) click to toggle source

Access doesn’t support renaming tables from an SQL query, so create a copy of the table and then drop the from table.

   # File lib/sequel/adapters/shared/access.rb
25 def rename_table(from_table, to_table)
26   create_table(to_table, :as=>from(from_table))
27   drop_table(from_table)
28 end
serial_primary_key_options() click to toggle source

Access uses type Counter for an autoincrementing keys

   # File lib/sequel/adapters/shared/access.rb
31 def serial_primary_key_options
32   {:primary_key => true, :type=>:Counter}
33 end