Permalink
Browse files

Revert "Update docs in sqlite3 adapter"

This reverts commit 8d7c38b.

Reason: Lot of the additions aren't adding value.

[ci skip]
  • Loading branch information...
1 parent a3a25e7 commit b71a90060fb94709cceb3b2d80c3de6fd12a6e22 @vijaydev vijaydev committed May 17, 2012
Showing with 12 additions and 12 deletions.
  1. +12 −12 activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
@@ -48,7 +48,7 @@ def binary_to_string(value)
end
end
- # The SQLite3 adapter works with SQLite 3.6.16 or newer,
+ # The SQLite3 adapter works SQLite 3.6.16 or newer
# with the sqlite3-ruby drivers (available as gem from https://rubygems.org/gems/sqlite3).
#
# Options:
@@ -123,17 +123,17 @@ def adapter_name #:nodoc:
'SQLite'
end
- # Returns true, since this connection adapter supports ddl transactions.
+ # Returns true
def supports_ddl_transactions?
true
end
- # Returns true if SQLite version supports savepoints, false otherwise.
+ # Returns true if SQLite version is '3.6.8' or greater, false otherwise.
def supports_savepoints?
sqlite_version >= '3.6.8'
end
- # Returns true, since this connection adapter supports prepared statement.
+ # Returns true, since this connection adapter supports prepared statement
# caching.
def supports_statement_cache?
true
@@ -144,7 +144,7 @@ def supports_migrations? #:nodoc:
true
end
- # Returns true, since this connection adapter supports primary key.
+ # Returns true.
def supports_primary_key? #:nodoc:
true
end
@@ -153,12 +153,13 @@ def requires_reloading?
true
end
- # Returns true, since this connection adapter supports add column.
+ # Returns true
def supports_add_column?
true
end
-
- # Disconnects from the database if already connected.
+
+ # Disconnects from the database if already connected. Otherwise, this
+ # method does nothing.
def disconnect!
super
clear_cache!
@@ -170,17 +171,16 @@ def clear_cache!
@statements.clear
end
- # Returns true, since this connection adapter count distinct.
+ # Returns true
def supports_count_distinct? #:nodoc:
true
end
- # Returns true, since this connection adapter supports autoincrement.
+ # Returns true
def supports_autoincrement? #:nodoc:
true
end
- # Returns true, since this connection adapter supports
def supports_index_sort_order?
true
end
@@ -207,7 +207,7 @@ def encoding
@connection.encoding.to_s
end
- # Returns true, since this connection adapter supports explain.
+ # Returns true.
def supports_explain?
true
end

0 comments on commit b71a900

Please sign in to comment.