Gwendal Roué
b1c953c536
Better error reporting for missing scopes or prefetched rows
2019-05-21 19:56:55 +02:00
Gwendal Roué
cd53e0102b
Simplify PrefetchedRowsDecoder
2019-05-18 15:53:06 +02:00
Gwendal Roué
c5ac0ea941
Cleanup
2019-05-17 18:13:32 +02:00
Gwendal Roué
ad1bdd7f01
Rename Row.prefetches to Row.prefetchedRows
2019-05-17 14:08:33 +02:00
Gwendal Roué
9fc5cda92b
Rename PrefetchesTreeView to PrefetchesView
2019-05-06 08:19:12 +02:00
Gwendal Roué
17e8df2d25
Tests for consumption of prefetched rows into Decodable records
2019-05-05 21:09:23 +02:00
Gwendal Roué
f6a5279ac9
Use "join" for actual SQL joins, and refactor SQLRelation around "children"
2019-05-04 14:15:53 +02:00
Gwendal Roué
1f50b4fefe
Integrate SQLCipher as a CocoaPod
2019-04-19 08:33:19 +02:00
Gwendal Roué
4716f91d8b
Bake the single result expectation right into filter(key:) methods
...
This better hides this flag inside SQLSelectQuery, and avoids explicit support from FetchableRecord and TableRecord
2019-04-16 08:47:50 +02:00
Alex Robinson
7070dedf1a
Replace FetchRequestHint with a boolean for single results
...
Fixes previous test failure
2019-04-16 10:20:36 +10:00
Alex Robinson
072fa2583a
Add hints for use in request preparation
...
Hints are ignored by SQLRequest. When you write raw SQL you probably don't want GRDB to modify your query.
2019-04-11 13:14:41 +10:00
Gwendal Roué
05258b1098
Fix SPM build
2019-03-10 15:21:39 +01:00
Gwendal Roué
4ae1fb11cc
Extract EncodableRecord from MutablePersistableRecord
...
This fixes issue #426
2019-03-10 14:00:01 +01:00
Gwendal Roué
2d71679476
Cleanup
2019-02-26 08:07:13 +01:00
Gwendal Roué
8ef28b0683
Fix PersistenceError.description
2019-02-25 20:43:40 +01:00
Gwendal Roué
63192e2b75
Refactor PersistenceError.recordNotFound
2019-02-25 20:17:49 +01:00
Gwendal Roué
96b971b0da
PersistenceContainer specialization
2019-02-24 14:42:00 +01:00
Gwendal Roué
61ae460525
Persistence methods specialization, PersistenceContainer optimizations
2019-02-24 06:26:08 +01:00
Gwendal Roué
bed9164bcd
Allow specialization of fetching methods
2019-02-23 18:34:42 +01:00
Gwendal Roué
2c75582c22
@inlinable RecordCursor
2019-02-23 17:23:30 +01:00
Gwendal Roué
a0c85f093c
Remove all @inline(__always)
2019-02-23 13:37:00 +01:00
Gwendal Roué
36ce78bd37
Explicit sql argument label when building prepared statements
2019-02-17 13:28:41 +01:00
Gwendal Roué
4f350631ff
Remove fetching methods from SQLLiteral.
2019-02-17 13:28:41 +01:00
Gwendal Roué
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
a57aa2e346
rawSQL migration complete
2019-02-17 13:28:40 +01:00
Gwendal Roué
4bd5ace2ee
Use rawSQL as parameter name for raw SQL
2019-02-17 13:28:40 +01:00
Gwendal Roué
6e80c748d2
SQLRequest(rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
354d22d70d
Update documentation for literal interpolation
2019-02-17 13:24:38 +01:00
Gwendal Roué
637de8b6fa
SQLiteral are passed via a literal parameter
2019-02-17 13:24:38 +01:00
Gwendal Roué
aa6f55d72f
Statement arguments are generally non optional
2019-02-17 13:24:38 +01:00
Gwendal Roué
f018c7f823
Rename SQLString to SQLLiteral
2019-02-17 13:24:38 +01:00
Gwendal Roué
09e85ba341
SQLString everywhere
2019-02-17 13:24:38 +01:00
Gwendal Roué
ff439c2dbc
Documentation
2019-02-17 13:24:37 +01:00
Gwendal Roué
b5bcdd9df4
Fetch FetchableRecord from SQLString
2019-02-17 13:24:37 +01:00
Gwendal Roué
8affc8abe4
Remove dead code
2019-02-17 13:24:37 +01:00
Gwendal Roué
bbc64e38c7
SE-0207 Add an allSatisfy algorithm to Sequence
2019-02-09 09:50:04 +01:00
Gwendal Roué
249484a21f
SE-0204 Add last(where:) and lastIndex(where:) Methods
2019-02-08 08:47:45 +01:00
Gwendal Roué
b6f79f176c
SE-0206 : Hashable Enhancements
2019-02-07 08:21:48 +01:00
Gwendal Roué
bf0c9b5c27
Move non-mutating updateChanges(_:with:) from PersistableRecord to PersistableRecord & AnyObject.
2019-01-05 12:35:28 +01:00
Gwendal Roué
ef54efcb75
Cleanup
2018-11-28 09:11:36 +01:00
Gwendal Roué
f41112c071
Documentation
2018-11-28 08:46:48 +01:00
Gwendal Roué
32f1a7ae0f
Fix JSON encoding of empty arrays and dictionaries
2018-11-28 08:34:32 +01:00
Gwendal Roué
d6e7d74a12
Cleanup
2018-11-21 22:27:33 +01:00
Gwendal Roué
771c85581c
Fix documentation typo
2018-11-21 22:13:07 +01:00
Gwendal Roué
cc2a2a3545
Non-mutating version of updateChanges
2018-11-21 22:09:41 +01:00
Gwendal Roué
3e67a1a021
Why use fileprivate when private is enough?
2018-11-21 20:33:21 +01:00
Gwendal Roué
a3e62d8734
Factor updateChanges
2018-11-21 20:28:22 +01:00
Gwendal Roué
f5bfb9df95
MutablePersistableRecord.updateChanges(_:with:)
2018-11-21 08:37:51 +01:00
Gwendal Roué
6157ab0583
Have cursors reset their statement when they are deinitialized
...
This is the real fix for #424 . GRDB used to keep unfinished SQLite statements around. Now cursors properly reset their statement when they are done. We no longer have to clear the statement cache before a backup.
2018-10-05 08:13:23 +02:00