Module: Sequel::Access::DatabaseMethods

Extended by:
Database::ResetIdentifierMangling
Included in:
Sequel::ADO::Access::DatabaseMethods
Defined in:
lib/sequel/adapters/shared/access.rb

Constant Summary

Instance Method Summary collapse

Methods included from Database::ResetIdentifierMangling

extended

Instance Method Details

#database_typeObject

Access uses type :access as the database_type



9
10
11
# File 'lib/sequel/adapters/shared/access.rb', line 9

def database_type
  :access
end

#rename_table(from_table, to_table) ⇒ Object

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



20
21
22
23
# File 'lib/sequel/adapters/shared/access.rb', line 20

def rename_table(from_table, to_table)
  create_table(to_table, :as=>from(from_table))
  drop_table(from_table)
end

#serial_primary_key_optionsObject

Access uses type Counter for an autoincrementing keys



26
27
28
# File 'lib/sequel/adapters/shared/access.rb', line 26

def serial_primary_key_options
  {:primary_key => true, :type=>:Counter}
end