diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-22 20:58:02 -0300 |
---|---|---|
committer | Sebastian Martinez <sebastian@wyeworks.com> | 2011-04-22 20:58:02 -0300 |
commit | 3e678daa720f26cffc889a301a1d27b89294d14a (patch) | |
tree | 39b29217f4becb870afb12f04794205eef496d17 /activerecord/lib | |
parent | 868fb3825cb9631bdf284668f354f7bb1ea0d61b (diff) | |
download | rails-3e678daa720f26cffc889a301a1d27b89294d14a.tar.gz rails-3e678daa720f26cffc889a301a1d27b89294d14a.tar.bz2 rails-3e678daa720f26cffc889a301a1d27b89294d14a.zip |
Added some docs on SQLite adapter
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 432bbbba45..4540cf015b 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -58,10 +58,12 @@ module ActiveRecord 'SQLite' end + # Returns true if SQLite version is '2.0.0' or greater, false otherwise. def supports_ddl_transactions? sqlite_version >= '2.0.0' end + # Returns true if SQLite version is '3.6.8' or greater, false otherwise. def supports_savepoints? sqlite_version >= '3.6.8' end @@ -86,6 +88,7 @@ module ActiveRecord true end + # Returns true if SQLite version is '3.1.6' or greater, false otherwise. def supports_add_column? sqlite_version >= '3.1.6' end @@ -103,10 +106,12 @@ module ActiveRecord @statements.clear end + # Returns true if SQLite version is '3.2.6' or greater, false otherwise. def supports_count_distinct? #:nodoc: sqlite_version >= '3.2.6' end + # Returns true if SQLite version is '3.1.0' or greater, false otherwise. def supports_autoincrement? #:nodoc: sqlite_version >= '3.1.0' end |