class SQLite3Adapter
Ruby on Rails 7.2.3
Since v4.0.13Active Record SQLite3 Adapter
The SQLite3 adapter works with the sqlite3-ruby drivers (available as gem from rubygems.org/gems/sqlite3).
Options
-
:database- Path to the database file.
Inherits from
Includes
Constants
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::ADAPTER_NAME
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::COLLATE_REGEX
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::DEFAULT_PRAGMAS
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::DEFERRABLE_REGEX
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::EXTENDED_TYPE_MAPS
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::FINAL_CLOSE_PARENS_REGEX
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::FK_REGEX
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::GENERATED_ALWAYS_AS_REGEX
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::NATIVE_DATABASE_TYPES
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::PRIMARY_KEY_AUTOINCREMENT_REGEX
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::TYPE_MAP
- ActiveRecord::ConnectionAdapters::SQLite3Adapter::UNQUOTED_OPEN_PARENS_REGEX
Methods (defined here)
- # active?
- # add_timestamps
- # connected?
- # database_exists?
- # disconnect!
- # encoding
- # foreign_keys
- # rename_table
- # requires_reloading?
- # supports_check_constraints?
- # supports_common_table_expressions?
- # supports_concurrent_connections?
- # supports_datetime_with_precision?
- # supports_ddl_transactions?
- # supports_deferrable_constraints?
- # supports_explain?
- # supports_expression_index?
- # supports_foreign_keys?
- # supports_index_sort_order?
- # supports_insert_conflict_target?
- # supports_insert_on_conflict?
- # supports_insert_on_duplicate_skip?
- # supports_insert_on_duplicate_update?
- # supports_insert_returning?
- # supports_json?
- # supports_lazy_transactions?
- # supports_partial_index?
- # supports_savepoints?
- # supports_transaction_isolation?
- # supports_views?
- # supports_virtual_columns?
- # use_insert_returning?
- self. dbconsole
- self. new
- self. new_client
- self. strict_strings_by_default
Private methods
(22)
Implementation detail — not part of the public API.
- # alter_table
- # arel_visitor
- # bind_params_length
- # build_statement_pool
- # column_definitions
- # configure_connection
- # connect
- # copy_table
- # copy_table_contents
- # copy_table_indexes
- # extract_default_function
- # extract_value_from_default
- # has_default_function?
- # invalid_alter_table_type?
- # move_table
- # reconnect
- # table_info
- # table_structure
- # table_structure_sql
- # table_structure_with_collation
- # translate_exception
- self. initialize_type_map
Methods (inherited)
From ActiveRecord::ConnectionAdapters::AbstractAdapter (82)
- # active?
- # adapter_name
- # check_all_foreign_keys_valid!
- # clear_cache!
- # close
- # connect!
- # connected?
- # connection_retries
- # database_exists?
- # default_timezone
- # disable_extension
- # disable_referential_integrity
- # discard!
- # disconnect!
- # enable_extension
- # expire
- # extensions
- # index_algorithms
- # lease
- # pool=
- # prefetch_primary_key?
- # prepared_statements
- # prepared_statements?
- # preventing_writes?
- # raw_connection
- # reconnect!
- # replica?
- # requires_reloading?
- # reset!
- # retry_deadline
- # role
- # savepoint_errors_invalidate_transactions?
- # schema_cache
- # schema_version
- # shard
- # supports_advisory_locks?
- # supports_bulk_alter?
- # supports_check_constraints?
- # supports_comments?
- # supports_comments_in_create?
- # supports_common_table_expressions?
- # supports_concurrent_connections?
- # supports_datetime_with_precision?
- # supports_ddl_transactions?
- # supports_deferrable_constraints?
- # supports_exclusion_constraints?
- # supports_explain?
- # supports_expression_index?
- # supports_extensions?
- # supports_foreign_keys?
- # supports_foreign_tables?
- # supports_index_include?
- # supports_index_sort_order?
- # supports_indexes_in_create?
- # supports_insert_conflict_target?
- # supports_insert_on_duplicate_skip?
- # supports_insert_on_duplicate_update?
- # supports_insert_returning?
- # supports_json?
- # supports_lazy_transactions?
- # supports_materialized_views?
- # supports_nulls_not_distinct?
- # supports_optimizer_hints?
- # supports_partial_index?
- # supports_partitioned_indexes?
- # supports_restart_db_transaction?
- # supports_savepoints?
- # supports_transaction_isolation?
- # supports_unique_constraints?
- # supports_validate_constraints?
- # supports_views?
- # supports_virtual_columns?
- # throw_away!
- # unprepared_statement
- # verify!
- # verify_timeout
- self. database_exists?
- self. dbconsole
- self. find_cmd_and_exec
- self. type_cast_config_to_boolean
- self. type_cast_config_to_integer
- self. validate_default_timezone
From ActiveRecord::ConnectionAdapters::QueryCache (9)
- # cache
- # clear_query_cache
- # disable_query_cache!
- # enable_query_cache!
- # query_cache
- # query_cache_enabled
- # uncached
- self. dirties_query_cache
- self. new
From ActiveSupport::Callbacks (1)
From Object (17)
- # acts_like?
- # blank?
- # deep_dup
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_param
- # to_query
- # try
- # try!
- # with
- # with_options
From ActiveSupport::Concern (3)
- # class_methods
- # included
- # prepended
From ActiveSupport::DescendantsTracker (3)
- # descendants
- self. descendants
- self. subclasses
From ActiveSupport::NumericWithFormat (2)
- # to_formatted_s
- # to_fs