aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb
Commit message (Collapse)AuthorAgeFilesLines
* I herd you like modules.Jon Leighton2011-12-241-52/+48
|
* Exceptions should read from the spec configuAaron Patterson2011-12-081-1/+1
|
* respond_to? information of AR is not the responsibility of the specAaron Patterson2011-11-291-7/+9
| | | | resolver.
* 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-281-1/+2
|
* break establish_connection to smaller methodsAaron Patterson2011-11-281-30/+40
|
* use thread locals and an instance variable within QueryCache#BodyProxy to ↵Mark J. Titorenko2011-10-071-0/+8
| | | | maintain appropriate linkage with AR database connection across threads
* Merge pull request #2897 from rsutphin/ar31-remove_connectionAaron Patterson2011-09-061-1/+1
| | | | Patch for issue #2820
* 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
|
* make sure we have an active database connection before running each ↵Aaron Patterson2011-03-281-1/+5
| | | | connection management test
* implements ActiveRecord::Base.connection_config to be able to check the ↵Xavier Noria2011-03-051-0/+10
| | | | configuration of the current connection at runtime
* replace if ! with unlessNeeraj Singh2010-10-171-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Exception handling more readableThiago Pradi2010-09-191-2/+2
| | | | | | [#5601 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove old rubygems require.José Valim2010-07-121-7/+1
|
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-1/+1
| | | | not "ActiveRecord"
* get the rescue error page back [#4536 state:resolved]Sam Ruby2010-05-081-1/+1
|
* Use class_inheritable_accessor for connection_handlerPratik Naik2010-05-041-3/+3
|
* Remove allow_concurrency and verification_timeout from ActiveRecord::Base ↵José Valim2010-01-131-20/+0
| | | | (deprecated since 2.2).
* Set deprecation warnings for RAILS_ENV and RAILS_DEFAULT_LOGGER.José Valim2010-01-131-2/+2
|
* Merge docrailsPratik Naik2008-12-191-0/+1
|
* Merge with docrailsPratik Naik2008-12-071-0/+2
|
* Deprecate verification_timeout and verify before resetNick Sieger2008-09-041-5/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Make clear_active_connections! also return stale connections back to the poolNick Sieger2008-08-291-3/+2
| | | | - also clean up some cruft remaining from per-thread connection cache
* Deprecate allow_concurrency and make it have no effectNick Sieger2008-08-291-19/+11
|
* Nearing the finish line. Initial fixed-size connection pool implemented, ↵Nick Sieger2008-08-291-0/+4
| | | | more docs
* Split connection handler into single- and multiple-thread versions.Nick Sieger2008-08-291-5/+17
|
* Connection handling methods extracted out into separate ConnectionHandler classNick Sieger2008-08-291-104/+27
| | | | - delegating methods left behind
* Fix failure to retain value of allow_concurrencyNick2008-08-291-0/+1
| | | | | - Also carry allow_concurrency value through to connection adapter (for postgresql)
* Add synchronization to connection pool alsoNick2008-08-291-1/+3
|
* Introduce synchronization around connection pool accessNick2008-08-291-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_poolsNick2008-08-291-10/+20
| | | | | - Distinguis meaning of "active_connections" to always mean connections associated with the current thread
* Initial conversion to connection poolNick2008-08-291-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 Peek2008-07-271-1/+0
| | | | | | ActiveRecord::Base.establish_connection" This reverts commit 8b858782fa693e89a47fc3dd5ae38d842ede6d04.
* Ensure adapater specific code is loaded on ↵Joshua Peek2008-07-211-0/+1
| | | | ActiveRecord::Base.establish_connection
* Merge docrails.Pratik Naik2008-05-251-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-1/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: fix warnings, shadowed block vars, and unitialized instance ↵Jeremy Kemper2007-12-221-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 Molina2007-11-081-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 Koziarski2007-10-251-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 Kemper2007-10-041-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 Kemper2007-09-151-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 Kemper2007-05-251-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 Olson2007-01-281-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 SQLiteDavid Heinemeier Hansson2007-01-151-2/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5955 5ecf4fe2-1ee6-0310-87b1-e25e094e27de