Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | respond_to? information of AR is not the responsibility of the spec | Aaron Patterson | 2011-11-29 | 1 | -7/+9 |
| | | | | resolver. | ||||
* | Move connection resoluion logic to it's own testable class. | Aaron Patterson | 2011-11-28 | 1 | -58/+74 |
| | |||||
* | clean up string => hash conversion for connection pool | Aaron Patterson | 2011-11-28 | 1 | -19/+17 |
| | |||||
* | pools are 1:1 with spec now rather than 1:1 with class | Aaron Patterson | 2011-11-28 | 1 | -1/+2 |
| | |||||
* | break establish_connection to smaller methods | Aaron Patterson | 2011-11-28 | 1 | -30/+40 |
| | |||||
* | use thread locals and an instance variable within QueryCache#BodyProxy to ↵ | Mark J. Titorenko | 2011-10-07 | 1 | -0/+8 |
| | | | | maintain appropriate linkage with AR database connection across threads | ||||
* | Merge pull request #2897 from rsutphin/ar31-remove_connection | Aaron Patterson | 2011-09-06 | 1 | -1/+1 |
| | | | | Patch for issue #2820 | ||||
* | Simplify the way default DATABASE_URL works. | Glenn Gillen | 2011-07-25 | 1 | -1/+1 |
| | |||||
* | Fixes typo | Vijay Dev | 2011-07-22 | 1 | -1/+1 |
| | |||||
* | adding more tests around database uri parsing | Aaron Patterson | 2011-07-21 | 1 | -5/+3 |
| | |||||
* | Add documentation for URL connection strings. | Glenn Gillen | 2011-07-20 | 1 | -0/+6 |
| | |||||
* | Added test for postgres connections as URL. Fixed query param parsing. | Glenn Gillen | 2011-07-20 | 1 | -1/+1 |
| | |||||
* | Provide database connection settings as a URL. | Glenn Gillen | 2011-07-20 | 1 | -0/+22 |
| | |||||
* | make sure we have an active database connection before running each ↵ | Aaron Patterson | 2011-03-28 | 1 | -1/+5 |
| | | | | connection management test | ||||
* | implements ActiveRecord::Base.connection_config to be able to check the ↵ | Xavier Noria | 2011-03-05 | 1 | -0/+10 |
| | | | | configuration of the current connection at runtime | ||||
* | replace if ! with unless | Neeraj Singh | 2010-10-17 | 1 | -1/+1 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Exception handling more readable | Thiago Pradi | 2010-09-19 | 1 | -2/+2 |
| | | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Remove old rubygems require. | José Valim | 2010-07-12 | 1 | -7/+1 |
| | |||||
* | edit pass: the names of Rails components have a space, ie, "Active Record", ↵ | Xavier Noria | 2010-06-14 | 1 | -1/+1 |
| | | | | not "ActiveRecord" | ||||
* | get the rescue error page back [#4536 state:resolved] | Sam Ruby | 2010-05-08 | 1 | -1/+1 |
| | |||||
* | Use class_inheritable_accessor for connection_handler | Pratik Naik | 2010-05-04 | 1 | -3/+3 |
| | |||||
* | Remove allow_concurrency and verification_timeout from ActiveRecord::Base ↵ | José Valim | 2010-01-13 | 1 | -20/+0 |
| | | | | (deprecated since 2.2). | ||||
* | Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER. | José Valim | 2010-01-13 | 1 | -2/+2 |
| | |||||
* | Merge docrails | Pratik Naik | 2008-12-19 | 1 | -0/+1 |
| | |||||
* | Merge with docrails | Pratik Naik | 2008-12-07 | 1 | -0/+2 |
| | |||||
* | Deprecate verification_timeout and verify before reset | Nick Sieger | 2008-09-04 | 1 | -5/+10 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Make clear_active_connections! also return stale connections back to the pool | Nick Sieger | 2008-08-29 | 1 | -3/+2 |
| | | | | - also clean up some cruft remaining from per-thread connection cache | ||||
* | Deprecate allow_concurrency and make it have no effect | Nick Sieger | 2008-08-29 | 1 | -19/+11 |
| | |||||
* | Nearing the finish line. Initial fixed-size connection pool implemented, ↵ | Nick Sieger | 2008-08-29 | 1 | -0/+4 |
| | | | | more docs | ||||
* | Split connection handler into single- and multiple-thread versions. | Nick Sieger | 2008-08-29 | 1 | -5/+17 |
| | |||||
* | Connection handling methods extracted out into separate ConnectionHandler class | Nick Sieger | 2008-08-29 | 1 | -104/+27 |
| | | | | - delegating methods left behind | ||||
* | Fix failure to retain value of allow_concurrency | Nick | 2008-08-29 | 1 | -0/+1 |
| | | | | | - Also carry allow_concurrency value through to connection adapter (for postgresql) | ||||
* | Add synchronization to connection pool also | Nick | 2008-08-29 | 1 | -1/+3 |
| | |||||
* | Introduce synchronization around connection pool access | Nick | 2008-08-29 | 1 | -13/+36 |
| | | | | | | - use new active support Module#synchronize - allow_concurrency now switches between a null monitor and a regular monitor (defaulting to null monitor to avoid overhead) | ||||
* | Rename defined_connections to connection_pools | Nick | 2008-08-29 | 1 | -10/+20 |
| | | | | | - Distinguis meaning of "active_connections" to always mean connections associated with the current thread | ||||
* | Initial conversion to connection pool | Nick | 2008-08-29 | 1 | -171/+27 |
| | | | | | | So far so good, tests still run clean. Next steps: synchronize connection pool access and modification, and change allow_concurrency to simply switch a real lock for a null lock. | ||||
* | Revert "Ensure adapater specific code is loaded on ↵ | Joshua Peek | 2008-07-27 | 1 | -1/+0 |
| | | | | | | ActiveRecord::Base.establish_connection" This reverts commit 8b858782fa693e89a47fc3dd5ae38d842ede6d04. | ||||
* | Ensure adapater specific code is loaded on ↵ | Joshua Peek | 2008-07-21 | 1 | -0/+1 |
| | | | | ActiveRecord::Base.establish_connection | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -1/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ruby 1.9 compat: fix warnings, shadowed block vars, and unitialized instance ↵ | Jeremy Kemper | 2007-12-22 | 1 | -1/+1 |
| | | | | | | vars git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Smattering of grammatical fixes to documentation. Closes #10083 [BobSilva] | Marcel Molina | 2007-11-08 | 1 | -4/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make clear_reloadable_connections! take account of @@allow_concurrency. ↵ | Michael Koziarski | 2007-10-25 | 1 | -4/+17 |
| | | | | | | Closes #7579 [wilson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8014 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Try loading activerecord-<adaptername>-adapter gem before trying a plain ↵ | Jeremy Kemper | 2007-10-04 | 1 | -8/+3 |
| | | | | | | require so you can use custom gems for the bundled adapters. Also stops gems from requiring an adapter from an old Active Record gem. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | RubyGem database adapters: expects a gem named ↵ | Jeremy Kemper | 2007-09-15 | 1 | -3/+19 |
| | | | | | | activerecord-<database>-adapter with active_record/connection_adapters/<database>_adapter.rb in its load path. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7491 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Load database adapters on demand. Eliminates config.connection_adapters and ↵ | Jeremy Kemper | 2007-05-25 | 1 | -1/+6 |
| | | | | | | RAILS_CONNECTION_ADAPTERS. Closes #8456. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Don't create instance writer methods for class attributes. Closes #7401 [Rick] | Rick Olson | 2007-01-28 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6051 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Made sure that connections are only removed for SQLite | David Heinemeier Hansson | 2007-01-15 | 1 | -2/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5955 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | If only life was that simple (it didnt help) | David Heinemeier Hansson | 2006-12-01 | 1 | -0/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5658 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Replace the elaborate reloading connection checking scheme, just fix the ↵ | David Heinemeier Hansson | 2006-12-01 | 1 | -8/+0 |
| | | | | | | Ruby-based MySQL adapter, ye? git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5656 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |