Commit Graph
516 Commits
Author SHA1 Message Date
swiftlyfalling 35f1b7eedd Add @noescape to appropriate closures to match behavior of the Swift3 branch 2016-09-26 12:33:00 -04:00
Gwendal Roué 4a1706ede6 Remove Row.databaseValue(atIndex:) and Row.databaseValue(named:) 2016-09-16 05:58:17 +02:00
Gwendal Roué f5cb34f506 DatabaseValue no longer adopts StatementColumnConvertible; DatabaseValue.fromDatabaseValue() no longer returns nil for NULL (fixes #119) 2016-09-16 05:48:09 +02:00
Gwendal Roué 3438addf6c Swift 2.3 (addresses #110, #112) 2016-09-09 08:44:03 +02:00
Gwendal Roué 72ab62b21b Merge branch 'WatchOS' of github.com:groue/GRDB.swift 2016-09-07 22:17:08 +02:00
Gwendal Roué 8a89be6999 Pass test for Database.tableExists() and temporary table 2016-09-07 13:33:31 +02:00
Gwendal Roué 5a296b1238 Fix #102 2016-08-17 07:54:13 +02:00
Gwendal Roué 5aaecd3946 Row.value(SQLColumn) 2016-08-13 10:59:16 +02:00
Gwendal Roué b5bb92459d WatchOS framework (adresses #96) 2016-08-10 06:27:50 +02:00
Gwendal Roué ced9493069 Better compilation time 2016-08-07 15:26:39 +02:00
Gwendal Roué 76ab3fd1ab Better compilation time 2016-08-07 15:26:30 +02:00
Gwendal Roué a132b58227 Promote _SQLExpressible protocol to SQLExpressible 2016-08-07 12:46:19 +02:00
Gwendal Roué 6cca2fd991 Rename PrimaryKey to PrimaryKeyInfo 2016-08-06 14:21:39 +02:00
Gwendal Roué 0fb1eec3cd Row adopts DictionaryLiteralConvertible 2016-07-31 06:18:16 +02:00
Gwendal Roué b16656bd23 Partial update WIP: cache & column case insensitivity 2016-07-28 19:28:46 +02:00
Gwendal Roué 548ff068fd Partial update WIP: implementation 2016-07-28 08:41:22 +02:00
Gwendal Roué 8ecfb872b6 Simplify DatabaseValueConvertible.sqlLiteral 2016-07-22 10:01:36 +02:00
Gwendal Roué 111d11a71b DatabaseValueConvertible.sqlLiteral returns a safely escaped SQL literal (addresses #83) 2016-07-22 08:49:35 +02:00
Gwendal Roué 0e46ff2b6d Documentation 2016-07-21 19:10:41 +02:00
Gwendal Roué fcf90a053a Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public 2016-07-21 19:08:27 +02:00
Gwendal Roué df32c1c5d5 Allow SelectStatement to perform database changes - Fixes #80 and #82 for good. 2016-07-18 12:57:38 +02:00
Gwendal Roué 34ff64b103 Rename DatabaseScheduler to SchedulingWatchdog 2016-07-08 18:22:34 +02:00
Gwendal Roué e8a9035e68 Simplify DatabaseScheduler, and let SerializedDatabase implement the serialization constraints. 2016-07-08 17:38:52 +02:00
Gwendal Roué e664ab18ee Fixes #80 2016-07-08 14:30:45 +02:00
Gwendal Roué b78c5b32c6 Documentation 2016-07-08 10:01:23 +02:00
Gwendal Roué 4ddc8f950e Row adapters: rename AdaptedColumnsDescription to ConcreteColumnMapping 2016-07-08 09:52:04 +02:00
Gwendal Roué 358c3ab0c3 Row adapters: rename "variants" to "scopes" 2016-07-08 08:44:41 +02:00
Gwendal Roué d35b65c9d2 #56: cleanup
- Dabase.indexes(tableName) returns actual indexes (no more fake index on INTEGER PRIMARY KEY column)
- Database.colums(_:uniquelyIdentifyRowsIn:) checks indexes, and primary key
- DatabaseSchemaCache caches table indexes (with invalidation on CREATE/DROP INDEX statements)
2016-07-06 19:09:25 +02:00
Gwendal Roué baff716ef6 #56: fetchOne(_:key:Dictionary) performs the same unique index check as deleteOne() 2016-07-06 08:18:14 +02:00
Gwendal Roué 1141676223 #56: Database.indexes(tableName) includes the implicit unique index on INTEGER PRIMARY KEY column. 2016-07-05 22:33:56 +02:00
Gwendal Roué a6ce80d39b #56: TableMapping.deleteOne(_🔑), TableMapping.deleteAll(_:keys:) 2016-07-05 22:16:23 +02:00
Gwendal Roué 21e9e64b3d DatabaseValueConvertible and StatementColumnConvertible can now be fetched through a RowAdapter. DatabaseValueConvertible: raise a fatal error instead of converting to nil for invalid conversions triggered by fetch() methods. 2016-06-28 13:54:45 +02:00
Gwendal Roué 48c431c0a9 Backup clears the schema cache of the target database 2016-06-28 13:07:53 +02:00
Gwendal Roué 8992b4a284 Move FetchRequest to Core 2016-06-28 09:09:06 +02:00
Gwendal Roué cae3d7b321 Support for NSUUID 2016-06-20 22:37:31 +02:00
Gwendal Roué e0ea5af18e Refactor database events filtering 2016-06-20 20:38:31 +02:00
Gwendal Roué 6a466fcb12 Detailed database changes observation 2016-06-20 15:21:14 +02:00
Gwendal Roué 219899fc9b Query Interface arguments to SQL snippets 2016-06-18 14:49:17 +02:00
Gwendal Roué 2606f7196e SuffixRowAdapter index preconditions 2016-06-09 09:11:44 +02:00
Gwendal Roué a65d7cdc15 Documentation fix 2016-06-09 08:30:19 +02:00
Gwendal Roué 1a17efcf8e Documentation fix 2016-06-09 08:28:17 +02:00
Gwendal Roué a7ac615bb2 Merge branch 'master' into RowAdapter2 2016-06-09 07:33:42 +02:00
Gwendal Roué 90fc23205c Cleanup 2016-06-09 06:21:39 +02:00
Gwendal Roué a8df726bff NSDecimalNumber.databaseValue only returns a double when the decimal number does not contain an integer that fits in Int64. 2016-06-08 23:14:49 +02:00
Gwendal Roué a882a5f346 RowAdapter documentation 2016-06-08 20:54:25 +02:00
Gwendal Roué 390cf44a88 RowAdapter documentation 2016-06-08 09:00:22 +02:00
Gwendal Roué 3e71253ffb RowAdapter documentation 2016-06-08 08:17:37 +02:00
Gwendal Roué 748e2a81ad RowAdapter documentation 2016-06-08 08:03:35 +02:00
Gwendal Roué d3ebe43cbd RowAdapter refactoring 2016-06-08 06:41:37 +02:00
Gwendal Roué 15f9aabaf0 SuffixRowAdapter 2016-06-07 22:18:13 +02:00