aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
Commit message (Collapse)AuthorAgeFilesLines
* pushing caching and visitors down to the connectionAaron Patterson2011-11-191-4/+1
|
* Revert "Merge pull request #1163 from amatsuda/sexier_migration_31"Aaron Patterson2011-11-171-10/+8
| | | | | | | | | | 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
* implements AR::Relation#explainXavier Noria2011-11-051-0/+19
| | | | | | | | | | | | | | | | | | | 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.
* AR changes to support creating ordered (asc, desc) indexesVlad Jebelev2011-11-041-0/+4
|
* Merge pull request #1163 from amatsuda/sexier_migration_31Aaron Patterson2011-11-041-8/+10
|\ | | | | Sexier migrations
| * No "t." for the migration DSL!Akira Matsuda2011-05-201-8/+10
| | | | | | | | | | 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.
* | preserve decimal column attributes after migrationGreg Reinacker2011-10-211-0/+3
| |
* | LRU cache in mysql and sqlite are now per-process caches.Aaron Patterson2011-09-071-10/+14
| |
* | Database adapters use a statement pool.Aaron Patterson2011-09-061-2/+3
| | | | | | | | | | | | Database adapters use a statement pool for limiting the number of open prepared statments on the database. The limit defaults to 1000, but can be adjusted in your database config by changing 'statement_limit'.
* | adding a statement pool for mysql and sqlite3Aaron Patterson2011-09-061-5/+33
| |
* | * Psych errors with poor yaml formatting are proxied. Fixes #2645, #2731Aaron Patterson2011-09-011-1/+0
| |
* | make sure encoding_aware? is availableAaron Patterson2011-09-011-0/+2
| |
* | Force binary data inserted for a string data type to utf-8 and log anAaron Patterson2011-08-251-3/+18
| | | | | | | | | | | | | | | | error. Strings tagged as binary will be stored in sqlite3 as blobs. It is an error to insert binary data to a string column, so an error is emitted in the log file. People are highly encouraged to track down the source of the binary strings and make sure that the encoding is set correctly before inserting to the database.
* | prevent sql injection attacks by escaping quotes in column namesAaron Patterson2011-08-161-1/+1
| |
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-0/+4
| | | | | | | | 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.
* | sqlite transactions now loggedGustavo Delfino2011-08-061-3/+3
| | | | | | motivation: http://stackoverflow.com/questions/6892630/sqlite-transactions-not-showing-in-test-log
* | bigdecimal should be typecast to a float on sqlite3. fixes #2162Aaron Patterson2011-07-201-0/+5
| |
* | stop using boolean expressions because of the side effectsAaron Patterson2011-05-271-1/+4
| |
* | close statment only if its not closedHemant Kumar2011-05-281-1/+1
| |
* | work around bug in the sqlite3 bindings. fixes #1289Aaron Patterson2011-05-271-0/+1
| |
* | Remove extra white-space on some exception messages.Sebastian Martinez2011-05-231-1/+1
| |
* | Removed AS core_ext/kernel/requires as it's not used and is bad practice.Josh Kalderimis2011-05-231-1/+0
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-011-1/+12
|\ | | | | | | | | Conflicts: railties/guides/source/contributing_to_ruby_on_rails.textile
| * Merge branch 'master' of github.com:lifo/docrailsDan Pickett2011-04-291-1/+12
| |\
| | * Added some docs on SQLite adapterSebastian Martinez2011-04-221-0/+5
| | |
| | * Make this docs more consistent with the rest of the docs presentSebastian Martinez2011-04-221-1/+1
| | |
| | * Added docs for #rename_table on some adaptersSebastian Martinez2011-04-221-0/+4
| | |
| | * Added docs for #columns on some adaptersSebastian Martinez2011-04-221-0/+1
| | |
| | * Merge branch 'master' of git://github.com/rails/railsXavier Noria2011-04-231-4/+0
| | |\
| | * | Added docs for #indexes on adaptersSebastian Martinez2011-04-221-0/+1
| | | |
* | | | using bind parameters for updatesAaron Patterson2011-04-301-0/+1
|/ / /
* | | sqlite3 supports prepared statement deletesAaron Patterson2011-04-291-0/+5
| | |
* | | Use existing #empty_insert_statement_value for an insert with no columns.Ken Collins2011-04-241-4/+0
| |/ |/|
* | Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-231-2/+7
|\| | | | | | | | | Conflicts: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
| * copy-edits 0e2644cXavier Noria2011-04-231-1/+1
| |
| * copy-edits e2656e0Xavier Noria2011-04-231-2/+2
| |
| * copy-edits 3d45964Xavier Noria2011-04-231-1/+1
| |
| * Added docs for #disconnect! on adaptersSebastian Martinez2011-04-221-0/+2
| |
| * Added missing docs for clear_cache! on adaptersSebastian Martinez2011-04-221-0/+1
| |
| * Added missing docs for +supports_primary_key?+ on some adaptersSebastian Martinez2011-04-221-0/+1
| |
| * Added missing docs for +support_migrations?+ on some adaptersSebastian Martinez2011-04-221-0/+1
| |
| * Have a more connection specific rdoc for +supports_statement_cache?+Sebastian Martinez2011-04-221-2/+2
| |
* | Move #exec_insert to abstract adapter's database statements.Ken Collins2011-04-221-4/+0
|/
* insert statements are prepared, but values are not escaped properlyAaron Patterson2011-04-141-0/+4
|
* adding a type cast method for prepared statementsAaron Patterson2011-04-141-1/+1
|
* make sqlite insert_sql more consistent with other adaptersAaron Patterson2011-04-111-1/+2
|
* adding exec_insert to sqlite3Aaron Patterson2011-04-111-0/+4
|
* sql logger ignores schema statementsAaron Patterson2011-03-281-2/+2
|
* pushing id insertion and prefetch primary keys down to Relation#insertAaron Patterson2011-03-221-0/+4
|
* log method takes an option list of bind valuesAaron Patterson2011-02-091-1/+1
|