Class

ActiveRecord::ConnectionAdapters::SQLiteAdapter

Inheritance
< ActiveRecord::ConnectionAdapters::AbstractAdapter < Object

The SQLite adapter works with both the 2.x and 3.x series of SQLite with the sqlite-ruby drivers (available both as gems and from rubyforge.org/projects/sqlite-ruby/).

Options:

  • :database - Path to the database file.

Classes & Modules

Aliases

Method Alias Description
remove_column → remove_columns

Methods

Class

Visibility Signature
public new (connection, logger, config)

Instance

Visibility Signature
public change_column_null (table_name, column_name, null, default = nil)
public disconnect! ()
public empty_insert_statement (table_name)
public rename_table (name, new_name)
public requires_reloading? ()
public select_rows (sql, name = nil)
public supports_add_column? ()
public supports_ddl_transactions? ()
public valid_alter_table_options ( type, options)
protected catch_schema_changes () {|| ...}
protected default_primary_key_type ()
protected sqlite_version ()
protected table_structure (table_name)

Class Method Detail

new(connection, logger, config)

Instance Method Detail

change_column_null(table_name, column_name, null, default = nil)

disconnect!()

empty_insert_statement(table_name)

rename_table(name, new_name)

requires_reloading?()

select_rows(sql, name = nil)

supports_add_column?()

supports_ddl_transactions?()

valid_alter_table_options( type, options)

See: www.sqlite.org/lang_altertable.html SQLite has an additional restriction on the ALTER TABLE statement

catch_schema_changes() {|| ...}

default_primary_key_type()

sqlite_version()

table_structure(table_name)