Gwendal Roué
5d463d6bff
Goal achieved! FetchedRecordsController uses ignoreDatabaseChangesUntilNextTransaction, and checks changed rowIds in order to avoid useless fetch requests
2018-01-14 22:41:27 +01:00
Gwendal Roué
9c8a9fbe32
SelectionInfo.rowIds contains the rowIds fetched by a request
2018-01-14 22:05:18 +01:00
Gwendal Roué
9b27c0c651
WIP TableMapping.filter(key: [:]) and TableMapping.filter(keys: [[:], ])
2018-01-11 19:34:28 +01:00
Gwendal Roué
2af85e7347
WIP TableMapping.filter(key:1) and TableMapping.filter(keys: [1, 2, 3])
2018-01-11 18:09:01 +01:00
Gwendal Roué
8a213af2ab
Cleanup & whitespace
2017-10-30 12:25:12 +01:00
Gwendal Roué
05a0130c1e
More straightforward cached statements API
2017-10-29 10:56:49 +01:00
Gwendal Roué
b90f876b5b
Records that adopt Encodable encode null columns
2017-10-09 08:06:46 +02:00
Gwendal Roué
a91da59448
Database.primaryKey(_:) no longer returns an Optional. PrimaryKeyInfo.isRowID tells whether the primary key is the rowed.
2017-09-15 09:00:56 +02:00
Gwendal Roué
2bb2493731
Turn MutablePersistable.databaseDictionary into a property
2017-09-11 08:53:56 +02:00
Gwendal Roué
279faa13e9
Less TODO
2017-09-08 13:23:20 +02:00
Gwendal Roué
a6c3566aa5
Record.updateChanges(_:) documentation
2017-09-08 08:08:07 +02:00
Gwendal Roué
e68e5f6265
Tests for Record.updateChangedColumns(_:)
2017-09-06 09:12:38 +02:00
Gwendal Roué
f4f72ebb43
Record.updateChanges(_:)
2017-09-06 08:36:13 +02:00
Gwendal Roué
d9cfa71fc7
MutablePersistable.databaseDictionary() return [String: DatabaseValue]
2017-08-28 08:13:20 +02:00
Gwendal Roué
715e12912b
New MutablePersistable.databaseDictionary() convenience method
2017-08-25 18:20:35 +02:00
Gwendal Roué
a4a05b1f0a
Introduce DatabaseValueCursor, NullableDatabaseValueCursor
2017-08-25 05:54:37 +02:00
Gwendal Roué
1a7b0b0626
Introduce RecordCursor
2017-08-24 09:08:29 +02:00
Gwendal Roué
8ccc23333d
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
2017-08-23 08:16:30 +02:00
Gwendal Roué
cae1f97032
Update documentation now that TableMapping deletion methods have moved to MutablePersistable
2017-08-18 18:40:57 +02:00
Gwendal Roué
20419834a6
Sequence.Iterator.Element -> Sequence.Element
2017-08-18 18:10:56 +02:00
Gwendal Roué
c700f5fc68
Move TableMapping deletion methods to MutablePersistable (prevent TableMapping from being able to modify the database)
2017-08-18 17:15:10 +02:00
Gwendal Roué
96159bd09c
RowConvertible.fetchCursor(_:keys:) returns a non-optional cursor.
2017-08-18 16:48:06 +02:00
Gwendal Roué
376d295853
Replace TableMapping.selectsRowID with TableMapping.databaseSelection
2017-08-18 16:27:24 +02:00
Gwendal Roué
4ec3e0f7d8
Drop deprecated TableMapping.primaryKeyRowComparator(_:)
2017-08-18 14:30:28 +02:00
Gwendal Roué
dc75ca4caf
SE-0166
2017-08-18 14:22:14 +02:00
Gwendal Roué
06a6c982aa
SE-0148
2017-08-18 14:22:14 +02:00
Gwendal Roué
f72ffcbb43
SE-0165
2017-08-18 14:20:35 +02:00
Gwendal Roué
210939d2c1
SE-0169
2017-08-18 14:20:35 +02:00
Gwendal Roué
badec62cdd
SE-0110
2017-08-18 14:20:35 +02:00
Gwendal Roué
cdc6370ee5
Restore column ordering in filter(db, keys: [["a": ..., "b": ...], ...]) removed in 2b2e92c810
2017-07-21 13:45:24 +02:00
Gwendal Roué
cc762e4e1d
TODO
2017-07-21 12:20:32 +02:00
Gwendal Roué
ed525bd1d8
Cleanup
2017-07-21 12:15:35 +02:00
Gwendal Roué
2b2e92c810
Cleanup
2017-07-21 12:13:03 +02:00
Gwendal Roué
44d31ead76
Implement deleteAll(_:keys:), deleteOne(_🔑 ) on top of the Query Interface
2017-07-21 11:19:24 +02:00
Gwendal Roué
ec163e94eb
Implement fetchCursor(_:keys:), fetchAll(_:keys:), and fetchOne(_🔑 ) on top of the Query Interface
2017-07-21 09:13:20 +02:00
Gwendal Roué
581bc9f27c
Support for partial records whose encode(to:) method does not provide values for all table columns
2017-07-13 11:03:23 +02:00
Gwendal Roué
d1697756e9
Remove compiler warning
2017-06-30 07:47:14 +02:00
Gwendal Roué
e59388738e
FetchedRecordsController: don't assume constant row layout when comparing records
2017-06-30 07:47:13 +02:00
Gwendal Roué
c8368d98eb
Refactor FetchedRecordsController so that it stops using deprecated TableMapping.primaryKeyRowComparator
2017-06-30 07:47:13 +02:00
Gwendal Roué
d12dad2e34
Deprecate TableMapping.primaryKeyRowComparator
2017-06-30 07:47:13 +02:00
Gwendal Roué
8ea215931e
Refactor Request
...
Rename TypedRequest's associated type from `Fetched` to `RowConverter`, because if TypedRequest needs a type that can decode rows, the type of the decoded rows does not need to be identical to the decoder type.
Introduce AdaptedRequest and AdaptedTypedRequest as results of Request.adapted(_:) and TypedRequest.adapted(_:), instead of the generic AnyRequest and AnyTypedRequest.
2017-06-20 07:54:19 +02:00
Gwendal Roué
a913aba018
Replace persistentDictionary with encode(to:)
2017-06-20 07:54:19 +02:00
Gwendal Roué
f858bcbe5b
Rename Request.fetching(_:) to Request.asRequest(of:)
2017-05-22 18:55:51 +02:00
Gwendal Roué
cd107711a9
Rename Request.bound(to:) to Request.fetching(_:)
2017-05-22 18:37:46 +02:00
Gwendal Roué
1e12068e64
DatabaseEventKind.impacts(_ selectionInfo:SelectStatement.SelectionInfo) now returns an non-optional boolean.
2017-05-22 13:53:59 +02:00
Gwendal Roué
f606e633da
Drop RowConvertible.awakeFromFetch
2017-05-05 13:20:37 +02:00
Gwendal Roué
4938568ea7
Refactor statement cache, allow SQLRequest to use cached statements
2017-05-04 20:11:45 +02:00
Gwendal Roué
4edd76341e
There are two statement caches: one for statements generated by the user, and one for the statements generated by GRDB. Those are separated so that GRDB has no opportunity to inadvertently modify the arguments of user statements.
2017-05-04 18:05:36 +02:00
Gwendal Roué
dae4ae1c6b
Reduce internal coupling
2017-04-22 11:12:43 +02:00
Gwendal Roué
c8023adff1
Cleanup
2017-04-20 14:49:08 +02:00