Class/Module Index [+]

Quicksearch

Sequel::Access::DatabaseMethods

Public Instance Methods

database_type() click to toggle source

Access uses type :access as the database_type

# File lib/sequel/adapters/shared/access.rb, line 9
def database_type
  :access
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, 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_options() click to toggle source

Access uses type Counter for an autoincrementing keys

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.