Class: ActiveRecord::ConnectionAdapters::SQLite2Adapter
- Inherits:
-
SQLiteAdapter
- Object
- AbstractAdapter
- SQLiteAdapter
- ActiveRecord::ConnectionAdapters::SQLite2Adapter
- Defined in:
- lib/gems/activerecord-2.2.2/lib/active_record/connection_adapters/sqlite_adapter.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#add_column(table_name, column_name, type, options = {}) ⇒ Object
:nodoc:.
- #rename_table(name, new_name) ⇒ Object
-
#supports_count_distinct? ⇒ Boolean
:nodoc:.
Methods inherited from SQLiteAdapter
#adapter_name, #add_lock!, #begin_db_transaction, #change_column, #change_column_default, #change_column_null, #columns, #commit_db_transaction, #delete_sql, #disconnect!, #empty_insert_statement, #execute, #indexes, #insert_sql, #native_database_types, #primary_key, #quote_column_name, #quote_string, #remove_column, #remove_index, #rename_column, #requires_reloading?, #rollback_db_transaction, #select_rows, #supports_autoincrement?, #supports_migrations?, #tables, #update_sql
Methods inherited from AbstractAdapter
#active?, #adapter_name, #decrement_open_transactions, #disable_referential_integrity, #disconnect!, #increment_open_transactions, #initialize, #log_info, #open_transactions, #prefetch_primary_key?, #quote_table_name, #raw_connection, #reconnect!, #requires_reloading?, #reset!, #reset_runtime, #supports_ddl_transactions?, #supports_migrations?, #verify!
Methods included from QueryCache
Methods included from Quoting
#quote, #quote_column_name, #quote_string, #quote_table_name, #quoted_date, #quoted_false, #quoted_string_prefix, #quoted_true
Methods included from DatabaseStatements
#add_limit!, #add_limit_offset!, #add_lock!, #begin_db_transaction, #case_sensitive_equality_operator, #commit_db_transaction, #default_sequence_name, #delete, #empty_insert_statement, #execute, #insert, #insert_fixture, #limited_update_conditions, #reset_sequence!, #rollback_db_transaction, #select_all, #select_one, #select_rows, #select_value, #select_values, #transaction, #update
Methods included from SchemaStatements
#add_column_options!, #add_index, #add_order_by_for_association_limiting!, #add_timestamps, #assume_migrated_upto_version, #change_column, #change_column_default, #change_table, #columns, #create_table, #distinct, #drop_table, #dump_schema_information, #index_name, #initialize_schema_migrations_table, #native_database_types, #remove_column, #remove_index, #remove_timestamps, #rename_column, #structure_dump, #table_alias_for, #table_alias_length, #table_exists?, #type_to_sql
Constructor Details
This class inherits a constructor from ActiveRecord::ConnectionAdapters::AbstractAdapter
Instance Method Details
#add_column(table_name, column_name, type, options = {}) ⇒ Object
:nodoc:
404 405 406 407 408 |
# File 'lib/gems/activerecord-2.2.2/lib/active_record/connection_adapters/sqlite_adapter.rb', line 404 def add_column(table_name, column_name, type, = {}) #:nodoc: alter_table(table_name) do |definition| definition.column(column_name, type, ) end end |
#rename_table(name, new_name) ⇒ Object
400 401 402 |
# File 'lib/gems/activerecord-2.2.2/lib/active_record/connection_adapters/sqlite_adapter.rb', line 400 def rename_table(name, new_name) move_table(name, new_name) end |
#supports_count_distinct? ⇒ Boolean
:nodoc:
396 397 398 |
# File 'lib/gems/activerecord-2.2.2/lib/active_record/connection_adapters/sqlite_adapter.rb', line 396 def supports_count_distinct? #:nodoc: false end |