aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
Commit message (Collapse)AuthorAgeFilesLines
* SQlite3 Bump Arun Agrawal2011-12-041-1/+1
|
* Use show create table.kennyj2011-12-031-3/+8
|
* implements automatic EXPLAIN logging for slow queriesXavier Noria2011-12-025-78/+98
|
* 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-292-11/+19
| | | | 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
|
* expire will set in_use to falseAaron Patterson2011-11-291-0/+5
|
* Leased connections return false on second leaseAaron Patterson2011-11-291-2/+4
|
* Adapters keep in_use flag when leasedAaron Patterson2011-11-291-1/+14
|
* 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
|
* Bump Mysql2!Arun Agrawal2011-11-221-1/+1
|
* oops! I suck! :bomb:Aaron Patterson2011-11-201-1/+0
|
* removing deprecated methodsAaron Patterson2011-11-193-26/+0
|
* adding visitors to the respective adaptersAaron Patterson2011-11-192-0/+2
|
* pushing caching and visitors down to the connectionAaron Patterson2011-11-194-81/+107
|
* Use `show index from`. We could fix `pk_and_sequence_for` method's ↵kennyj2011-11-191-18/+2
| | | | performance problem (GH #3678)
* Only used detailed schema introspection when doing a schema dump.Christos Zisopoulos2011-11-181-0/+7
| | | Fixes #3678
* Revert "Merge pull request #1163 from amatsuda/sexier_migration_31"Aaron Patterson2011-11-172-18/+10
| | | | | | | | | | 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
|
* Join method uses empty string by default, so remove itAaron Patterson2011-11-161-2/+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.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2011-11-081-3/+2
|\ | | | | | | | | Conflicts: railties/guides/source/active_record_querying.textile
| * self.up, self.down => up, downAkira Matsuda2011-11-071-3/+2
| |
* | adds trailing +s to the output of EXPLAIN for MySQLXavier Noria2011-11-071-3/+2
| |
* | Merge pull request #3521 from ↵Aaron Patterson2011-11-061-2/+1
|/ | | | | | nulogy/fix_postgres_adapter_to_handle_spaces_between_schemas Fix postgres adapter to handle spaces between schemas
* implements AR::Relation#explainXavier Noria2011-11-053-1/+137
| | | | | | | | | | | | | | | | | | | This is a first implementation, EXPLAIN is highly dependent on the database and I have made some compromises. On one hand, the method allows you to run the most common EXPLAIN and that's it. If you want EXPLAIN ANALYZE in PostgreSQL you need to do it by hand. On the other hand, I've tried to construct a string as close as possible to the ones built by the respective shells. The rationale is that IMO the user should feel at home with the output and recognize it at first sight. Per database. I don't know whether this implementation is going to work well. Let's see whether people like it.
* Merge pull request #3525 from kennyj/fix_3440-1Jon Leighton2011-11-051-2/+11
|\ | | | | Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440)
| * Fixed an issue id false option is ignored on mysql/mysql2 (fix #3440)kennyj2011-11-061-2/+11
| |
* | AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-046-14/+79
|/
* Merge pull request #1163 from amatsuda/sexier_migration_31Aaron Patterson2011-11-042-10/+12
|\ | | | | Sexier migrations
| * No "t." for the migration DSL!Akira Matsuda2011-05-202-10/+12
| | | | | | | | | | 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.
* | clear statement cache when tables are alteredAaron Patterson2011-10-271-0/+6
| |
* | preserve decimal column attributes after migrationGreg Reinacker2011-10-211-0/+3
| |
* | Merge pull request #3258 from ileitch/3-1-stableAaron Patterson2011-10-201-1/+7
| | | | | | | | Postgres: Do not attempt to deallocate a statement if the connection is no longer active.
* | reset prepared statement when schema changes imapact statement results. ↵Aaron Patterson2011-10-181-11/+43
| | | | | | | | fixes #3335