class SQLite3Adapter

Ruby on Rails 8.1.2

Since v4.0.13

Available in: v4.0.13 v4.1.16 v4.2.9 v5.2.8.1 v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Active Record SQLite3 Adapter

The SQLite3 adapter works with the sqlite3 driver.

Options

  • :database (String): Filesystem path to the database file.

  • :statement_limit (Integer): Maximum number of prepared statements to cache per database connection. (default: 1000)

  • :timeout (Integer): Timeout in milliseconds to use when waiting for a lock. (default: no wait)

  • :strict (Boolean): Enable or disable strict mode. When enabled, this will disallow double-quoted string literals in SQL statements. (default: see strict_strings_by_default)

  • :extensions (Array): (requires sqlite3 v2.4.0) Each entry specifies a sqlite extension to load for this database. The entry may be a filesystem path, or the name of a class that responds to .to_path to provide the filesystem path for the extension. See sqlite3-ruby documentation for more information.

There may be other options available specific to the SQLite3 driver. Please read the documentation for SQLite3::Database.new

Inherits from

ActiveRecord::ConnectionAdapters::AbstractAdapter

Includes

Constants

Methods (defined here)

Private methods

(22) Implementation detail — not part of the public API.

Methods (inherited)

From ActiveRecord::ConnectionAdapters::AbstractAdapter (84)
From ActiveRecord::ConnectionAdapters::SQLite3::DatabaseStatements (2)
From ActiveRecord::ConnectionAdapters::DatabaseLimits (3)
From ActiveRecord::ConnectionAdapters::QueryCache (9)
From ActiveRecord::ConnectionAdapters::Savepoints (4)
From ActiveSupport::Callbacks (1)
From Object (17)
From ActiveSupport::Concern (3)
From ActiveSupport::DescendantsTracker (3)
From ActiveSupport::NumericWithFormat (2)

Type at least 2 characters to search.

↑↓ navigate · open · esc close