aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
Commit message (Collapse)AuthorAgeFilesLines
* push synchronization in to each method. Reduces method calls and makesAaron Patterson2011-11-291-25/+29
| | | | it clear which methods are synchronized.
* Automatic closure of connections in threads is deprecated. For exampleAaron Patterson2011-11-291-1/+7
| | | | | | | | | | | | | | | | | the following code is deprecated: Thread.new { Post.find(1) }.join It should be changed to close the database connection at the end of the thread: Thread.new { Post.find(1) Post.connection.close }.join Only people who spawn threads in their application code need to worry about this change.
* AbstractAdapter#close can be called to add the connection back to theAaron Patterson2011-11-291-0/+1
| | | | pool.
* Start implementing @reserved_connections in terms of connection leases.Aaron Patterson2011-11-291-3/+3
|
* Rename `checked_out` to more descriptive `active_connections`Aaron Patterson2011-11-291-3/+3
|
* Use connection lease to determine "checked_out" connectionsAaron Patterson2011-11-291-17/+21
|
* Deprecate set_primary_key in favour of self.primary_key=Jon Leighton2011-11-291-1/+1
|
* respond_to? information of AR is not the responsibility of the specAaron Patterson2011-11-291-7/+9
| | | | resolver.
* remove unused instance variableAaron Patterson2011-11-281-1/+0
|
* just check in all connectionsAaron Patterson2011-11-281-6/+2
|
* Move connection resoluion logic to it's own testable class.Aaron Patterson2011-11-281-58/+74
|
* clean up string => hash conversion for connection poolAaron Patterson2011-11-281-19/+17
|
* pools are 1:1 with spec now rather than 1:1 with classAaron Patterson2011-11-282-4/+8
|
* break establish_connection to smaller methodsAaron Patterson2011-11-281-30/+40
|
* oops! I suck! :bomb:Aaron Patterson2011-11-201-1/+0
|
* pushing caching and visitors down to the connectionAaron Patterson2011-11-191-77/+31
|
* Revert "Merge pull request #1163 from amatsuda/sexier_migration_31"Aaron Patterson2011-11-171-8/+2
| | | | | | | | | | This reverts commit 0e407a90413d8a19002b85508d811ccdf2190783, reversing changes made to 533a9f84b035756eedf9fdccf0c494dc9701ba72. Conflicts: activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb activerecord/test/cases/migration_test.rb
* Revert "Merge pull request #3603 from vijaydev/change_table_without_block_arg"Aaron Patterson2011-11-171-12/+7
| | | | | | | | | This reverts commit 81fad6a270ec3cbbb88553c9f2e8200c34fd4d13, reversing changes made to 23101de283de13517e30c4c3d1ecc65525264886. Conflicts: activerecord/test/cases/migration_test.rb
* Adding a deprecation warning for use of the schema_info table.Aaron Patterson2011-11-161-0/+2
|
* Fix pull request #3609Noé Froidevaux2011-11-131-1/+1
|
* Prevent multiple SHOW TABLES calls when a table don't exists in database.Noé Froidevaux2011-11-111-3/+3
|
* Modify change_table to remove the need for the block argument.Vijay Dev2011-11-111-7/+12
|
* Checking the arity of the block passed to create_tableVijay Dev2011-11-101-1/+7
| | | | | | A recent change made to create_table does away with the need for the block argument. Checking the arity will prevent the mixing up of the two syntaxes.
* self.up, self.down => up, downAkira Matsuda2011-11-071-3/+2
|
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-042-2/+30
|
* Merge pull request #1163 from amatsuda/sexier_migration_31Aaron Patterson2011-11-041-2/+2
|\ | | | | Sexier migrations
| * No "t." for the migration DSL!Akira Matsuda2011-05-201-2/+2
| | | | | | | | | | Now you can omit |t| block parameter and all the t. from your migration code, that means, the syntax looks more Rails-3-ish, like the routes DSL and ActionMailer DSL. Also, this change won't break any of your existing migration files, since the traditional syntax is still available.
* | dump_schema_information: explicitly order inserts into schema_migrations tableLaust Rud Jacobsen2011-10-311-1/+1
| | | | | | | | | | | | | | This change reduces churn in the db/development_structure.sql file when using :sql as active_record.schema_format, and makes comparing diffs much easier. Test ensures the output SQL-statements are lexically ordered by version.
* | Default timestamps to non-nullMike Perham2011-10-142-3/+3
| |
* | use thread locals and an instance variable within QueryCache#BodyProxy to ↵Mark J. Titorenko2011-10-072-1/+9
| | | | | | | | maintain appropriate linkage with AR database connection across threads
* | Merge pull request #2897 from rsutphin/ar31-remove_connectionAaron Patterson2011-09-062-2/+2
| | | | | | | | Patch for issue #2820
* | Make the logic easier to readJon Leighton2011-09-061-4/+7
| |
* | Use new SelectManager#projections= methodJon Leighton2011-08-151-2/+2
| |
* | use update.key instead of update.ast.key. make better use of select manager.Jon Leighton2011-08-151-2/+2
| |
* | Refactor building the update managerJon Leighton2011-08-151-5/+3
| |
* | Support for multi-table updates with limits, offsets and ordersJon Leighton2011-08-151-0/+3
| |
* | Support updates with joins. Fixes #522.Jon Leighton2011-08-151-0/+9
| |
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-083-20/+41
| | | | | | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* | Simplify the way default DATABASE_URL works.Glenn Gillen2011-07-251-1/+1
| |
* | Fixes typoVijay Dev2011-07-221-1/+1
| |
* | adding more tests around database uri parsingAaron Patterson2011-07-211-5/+3
| |
* | Add documentation for URL connection strings.Glenn Gillen2011-07-201-0/+6
| |
* | Added test for postgres connections as URL. Fixed query param parsing.Glenn Gillen2011-07-201-1/+1
| |
* | Provide database connection settings as a URL.Glenn Gillen2011-07-201-0/+22
| |
* | cache column defaults for AR object instantiationAaron Patterson2011-06-271-0/+9
| |
* | Merge pull request #1763 from grantneufeld/schema_column_exists_options_hashJosé Valim2011-06-181-1/+1
|\ \ | | | | | | Fix default options argument on ActiveRecord::ConnectionAdaptors::Table#column_exists?
| * | Changed the default value for the options argument on ↵Grant Neufeld2011-06-181-1/+1
| | | | | | | | | | | | | | | | | | | | | ActiveRecord::ConnectionAdapters::Table#column_exists? from nil to an empty Hash {}. That method calls through to ActiveRecord::ConnectionAdapters::SchemaStatements##column_exists? expects options to be a Hash. When options was nil, an error would occur in cases where the column did exist because the called method attempted to perform a key lookup on options.
* | | Fix inconsistencies by being polite to the wrapped body. Needed for ↵Steve Hodgkiss2011-06-181-0/+8
|/ / | | | | | | Rack::Sendfile to function properly. See issue #1761.
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-06-182-9/+9
|\ \
| * | Update remove_index documentationLucia Escanellas2011-06-172-9/+9
| | | | | | | | | | | | | | | * Changes should better reflect present code behavior * Related to issue: https://github.com/rails/rails/issues/1624