Commit Graph
1613 Commits
Author SHA1 Message Date
Gwendal Roué 136a9fe6f6 Database.inTransaction() 2015-11-04 22:31:19 +01:00
Gwendal Roué 034b8b8a7c DatabaseQueue.inQueue is private 2015-11-04 22:13:20 +01:00
Gwendal Roué 6934efd98c Unify primary key and other key fetching methods 2015-10-31 08:38:37 +01:00
Gwendal Roué 0123d22812 Declare DatabaseGenerator.next() as mutating 2015-10-31 08:33:12 +01:00
Gwendal Roué e4f10c8beb Better fetch() vs. fetchAll() documentation and runtime warning. 2015-10-29 08:48:28 +01:00
Gwendal Roué 99ec2a1128 DatabaseTableMapping.fetch(_:keys:) tests WIP 2015-10-27 14:02:57 +01:00
Gwendal Roué 3516036bbc Code cleanup 2015-10-27 10:32:18 +01:00
Gwendal Roué 84f422fdd0 DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) arguments are generic sequences of non-optionals. 2015-10-27 10:28:04 +01:00
Gwendal Roué 771d790765 Documentation 2015-10-27 09:02:56 +01:00
Gwendal Roué 8879aa562d DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) arguments are arrays of optionals 2015-10-27 08:51: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é 7656fadfcc More precise Row.value(…) documentation 2015-10-26 21:39:42 +01:00
Gwendal Roué 8604392c72 More precise Row.value(…) documentation 2015-10-26 21:31:53 +01:00
Gwendal Roué 8afb44cdc0 DatabaseTableMapping.fetch(_:primaryKeys:), DatabaseTableMapping.fetchAll(_:primaryKeys:) 2015-10-26 14:35:19 +01:00
Gwendal Roué a1848e7594 Define Statement.sql as an immutable property 2015-10-26 10:36:19 +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é 5c1e320d97 NSData is now the type responsible for SQLite blobs. 2015-10-13 19:52:40 +02:00
Gwendal Roué 990c34e1d9 Assume NSData WIP 2015-10-13 09:06:36 +02:00
Gwendal Roué aa59b24bb5 Empty Row() initializer 2015-10-10 21:04:20 +02:00
Gwendal Roué 074b81a1ed Improve conversion error reporting 2015-10-03 11:23:02 +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é 1a640c2f10 Improve value conversion error reporting 2015-10-01 08:51:55 +02:00
Gwendal Roué b42b7fd831 RowConvertible.awakeFromFetch(_) is declared as mutating. 2015-10-01 08:18:31 +02:00
Gwendal Roué 6579e016e0 Row.hasColumn(_) 2015-10-01 06:36:17 +02:00
Gwendal Roué df2d4da51d RowConvertible.init(dictionary:) 2015-09-30 23:08:07 +02:00
Gwendal Roué c3a705493c Improve Row.value(named:) error reporting when column name is invalid 2015-09-30 22:14:11 +02:00
Gwendal Roué 0830bc0657 Documentation 2015-09-30 08:35:53 +02:00
Gwendal Roué 1474c41842 LogSQL() logs "SQLite" instead of "GRDB ». 2015-09-30 08:31:32 +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é 109f22ef85 DatabaseEvent documentation 2015-09-27 18:38:45 +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é ff9b2c8bda Fetch sequences of optional or non-optional values. 2015-09-25 08:31:29 +02:00
Gwendal Roué 8c508ef9a9 Fetch sequences of optional or non-optional values. 2015-09-25 06:38:33 +02:00
Gwendal Roué d11d6fa492 Make Row a final class. 2015-09-24 18:58:47 +02:00
Gwendal Roué 6db9ae464c Prevent statement argument mismatch. 2015-09-24 18:58:36 +02:00
Gwendal Roué 5c13660022 Rename MetalType -> SQLiteStatementConvertible 2015-09-24 09:12:30 +02:00
Gwendal Roué fdf7319261 SQLiteStatement documentation 2015-09-24 09:08:33 +02:00