Commit Graph
47 Commits
Author SHA1 Message Date
Gwendal Roué bb9117bdb6 Better collation implementation 2015-12-02 08:48:55 +01:00
Gwendal Roué da525b1856 Fix collations: sqlite does not provide \0 terminated C strings, but UTF8 buffers. 2015-12-02 08:29:55 +01:00
Gwendal Roué bf48bd6ac2 Remove a bunch of self. 2015-12-01 09:07:55 +01:00
Gwendal Roué 0be1117bd0 Collations WIP 2015-11-20 14:17:33 +01:00
Gwendal Roué 186732fb05 Collations WIP 2015-11-20 14:12:03 +01:00
Gwendal Roué 5f0f6745a8 Functions 2015-11-19 14:01:47 +01:00
Gwendal Roué 6afcc59c05 Documentation 2015-11-19 08:29:05 +01:00
Gwendal Roué aad7218df6 Functions 2015-11-19 08:06:41 +01:00
Gwendal Roué 23a9322e5e Functions 2015-11-18 22:20:55 +01:00
Gwendal Roué a84014402b Functions 2015-11-18 20:54:18 +01:00
Gwendal Roué 865431c58a Functions 2015-11-18 18:18:31 +01:00
Gwendal Roué 1e3d9f16df StatementArguments.Default is used in place of nil for default parameter values. 2015-11-13 11:46:25 +01:00
Gwendal Roué b7147ba64c TransactionObserverType methods are no longer optional. 2015-11-05 14:37:39 +01:00
Gwendal Roué 136a9fe6f6 Database.inTransaction() 2015-11-04 22:31:19 +01:00
Gwendal Roué e4f10c8beb Better fetch() vs. fetchAll() documentation and runtime warning. 2015-10-29 08:48:28 +01:00
Gwendal Roué 18306fcd64 Use /// for documentation comments, since Xcode 7 has weird behavior with /** 2015-10-27 08:30:24 +01:00
Gwendal Roué 1b6015afbf Cleanup 2015-10-15 13:12:19 +02:00
Gwendal Roué aab146ad23 Import Foundation when required 2015-10-14 15:49:14 +02:00
Gwendal Roué ea2c862b22 Expose raw SQLite connection and statement handles 2015-10-02 09:00:32 +02:00
Gwendal Roué e5d6dcea4f Update obsolete code 2015-10-02 08:24:33 +02:00
Gwendal Roué 4069ea4937 Documentation 2015-09-30 08:31:03 +02:00
Gwendal Roué 94408de61b Use sqlite3_trace for tracing SQL 2015-09-30 08:15:34 +02:00
Gwendal Roué a3e46f53f2 Fix documentation layout 2015-09-29 08:28:55 +02:00
Gwendal Roué 7f6b13d304 TransactionObserverType documentation 2015-09-28 22:23:48 +02:00
Gwendal Roué 64619caebc TransactionObserverType implementation documentation 2015-09-28 20:34:32 +02:00
Gwendal Roué e573713b54 Replace TransactionObserverType.databaseShouldCommit with databaseWillCommit 2015-09-28 14:08:43 +02:00
Gwendal Roué 1bbbc2734e Give the database to TransactionObserverType.databaseDidCommit and databaseDidRollback 2015-09-28 13:07:04 +02:00
Gwendal Roué fc8baafd1e TODO 2015-09-28 08:59:42 +02:00
Gwendal Roué 6fcc986e1a Refactor DatabaseTransactionDelegate into TransactionObserverType 2015-09-28 08:50:25 +02:00
Gwendal Roué 5c8d01373e DatabaseTransactionDelegate documentation 2015-09-27 17:31:56 +02:00
Gwendal Roué 5e8e9da629 DatabaseTransactionDelegate tests 2015-09-27 16:23:58 +02:00
Gwendal Roué 1e191994f0 DatabaseTransactionDelegate documentation 2015-09-27 14:07:09 +02:00
Gwendal Roué a6267a2acb Experimental DatabaseTransactionDelegate
Built on top of sqlite3_update_hook, sqlite3_commit_hook and sqlite3_rollback_hook.
2015-09-27 13:48:21 +02:00
Gwendal Roué facb6a53a9 Support for Busy handlers and timeout. 2015-09-13 15:20:53 +02:00
Gwendal Roué a6916ade9b Configuration.transactionType 2015-09-12 18:47:04 +02:00
Gwendal Roué 75bb735e98 Use fatalError() instead of precondition() so that safety checks survive Release configuration. 2015-09-12 14:36:06 +02:00
Gwendal Roué 4cbac39dfc Use precondition() instead of assert() so that safety checks survive Release configuration. 2015-09-12 14:24:21 +02:00
Gwendal Roué ac7db33b61 Refactor concurrency safety checks 2015-09-12 14:21:46 +02:00
Gwendal Roué 17c81871db Improve robustness of transaction error handling 2015-09-12 08:45:11 +02:00
Gwendal Roué 8bc7dbe273 Tests for SQLITE_BUSY 2015-09-12 08:22:12 +02:00
Gwendal Roué 214c9d30cd Database.updateStatement() is no longer a throwing method. 2015-09-11 18:33:58 +02:00
Gwendal Roué d4fc9dfe44 Database.columnInfosForTable(named:) 2015-09-10 07:58:30 +02:00
Gwendal Roué 9ef40dcb4f SQLite error management cleanup 2015-09-09 13:11:48 +02:00
Gwendal Roué 13906b0ceb Documentation 2015-09-09 09:06:46 +02:00
Gwendal Roué 53a825fb55 Reentrancy documentation and cleanup 2015-09-09 06:02:23 +02:00
Gwendal Roué 2bbc6152ff DatabaseQueue.inDatabase and DatabaseQueue.inTransaction are now reentrant. Transactions can not be nested, though. 2015-09-08 23:10:29 +02:00
Gwendal Roué 6c4794f02c DatabaseValueConvertible redesign, and project reorganization 2015-09-06 15:23:02 +02:00