@@ -146,28 +146,24 @@ def adapter_name
146
146
'Abstract'
147
147
end
148
148
149
- # Does this adapter support migrations? Backend specific, as the
150
- # abstract adapter always returns +false+.
149
+ # Does this adapter support migrations?
151
150
def supports_migrations?
152
151
false
153
152
end
154
153
155
154
# Can this adapter determine the primary key for tables not attached
156
- # to an Active Record class, such as join tables? Backend specific, as
157
- # the abstract adapter always returns +false+.
155
+ # to an Active Record class, such as join tables?
158
156
def supports_primary_key?
159
157
false
160
158
end
161
159
162
- # Does this adapter support using DISTINCT within COUNT? This is +true+
163
- # for all adapters except sqlite.
160
+ # Does this adapter support using DISTINCT within COUNT?
164
161
def supports_count_distinct?
165
162
true
166
163
end
167
164
168
165
# Does this adapter support DDL rollbacks in transactions? That is, would
169
- # CREATE TABLE or ALTER TABLE get rolled back by a transaction? PostgreSQL,
170
- # SQL Server, and others support this. MySQL and others do not.
166
+ # CREATE TABLE or ALTER TABLE get rolled back by a transaction?
171
167
def supports_ddl_transactions?
172
168
false
173
169
end
@@ -176,16 +172,14 @@ def supports_bulk_alter?
176
172
false
177
173
end
178
174
179
- # Does this adapter support savepoints? PostgreSQL and MySQL do,
180
- # SQLite < 3.6.8 does not.
175
+ # Does this adapter support savepoints?
181
176
def supports_savepoints?
182
177
false
183
178
end
184
179
185
180
# Should primary key values be selected from their corresponding
186
181
# sequence before the insert statement? If true, next_sequence_value
187
182
# is called before each insert to set the record's primary key.
188
- # This is false for all adapters but Firebird.
189
183
def prefetch_primary_key? ( table_name = nil )
190
184
false
191
185
end
@@ -200,8 +194,7 @@ def supports_partial_index?
200
194
false
201
195
end
202
196
203
- # Does this adapter support explain? As of this writing sqlite3,
204
- # mysql2, and postgresql are the only ones that do.
197
+ # Does this adapter support explain?
205
198
def supports_explain?
206
199
false
207
200
end
@@ -211,14 +204,13 @@ def supports_transaction_isolation?
211
204
false
212
205
end
213
206
214
- # Does this adapter support database extensions? As of this writing only
215
- # postgresql does.
207
+ # Does this adapter support database extensions?
216
208
def supports_extensions?
217
209
false
218
210
end
219
211
220
212
# Does this adapter support creating indexes in the same statement as
221
- # creating the table? As of this writing, only mysql does.
213
+ # creating the table?
222
214
def supports_indexes_in_create?
223
215
false
224
216
end
@@ -231,14 +223,12 @@ def disable_extension(name)
231
223
def enable_extension ( name )
232
224
end
233
225
234
- # A list of extensions, to be filled in by adapters that support them. At
235
- # the moment only postgresql does.
226
+ # A list of extensions, to be filled in by adapters that support them.
236
227
def extensions
237
228
[ ]
238
229
end
239
230
240
231
# A list of index algorithms, to be filled by adapters that support them.
241
- # MySQL and PostgreSQL have support for them right now.
242
232
def index_algorithms
243
233
{ }
244
234
end
@@ -299,7 +289,6 @@ def clear_cache!
299
289
end
300
290
301
291
# Returns true if its required to reload the connection between requests for development mode.
302
- # This is not the case for Ruby/MySQL and it's not necessary for any adapters except SQLite.
303
292
def requires_reloading?
304
293
false
305
294
end
0 commit comments