Gwendal Roué
813950f832
Avoid SQLITE_BUSY when opening a DatabaseSnapshot.
2020-07-09 17:45:57 +02:00
Gwendal Roué
b36a92c853
Towards increased SQLCollection.contains robustness
2020-07-06 15:13:55 +02:00
Gwendal Roué
68785d1c2d
Hide _SQLAssociation
2020-07-05 16:21:28 +02:00
Gwendal Roué
90f2642ec6
Make good use of the visitor pattern
2020-07-05 15:07:52 +02:00
Gwendal Roué
2201026ce8
Introduce FastPrimaryKeyExpression, drop SQLPrimaryKeyExpression
...
Also, don't let the user access this expression, so that he does not attempt at decoding it. Its only purpose is to generate efficient SQL.
2020-07-01 20:40:11 +02:00
Gwendal Roué
bcf912079b
Merge branch 'development' into dev/Combine
...
# Conflicts:
# CHANGELOG.md
2020-06-28 23:18:22 +02:00
Gwendal Roué
039f2661b6
2x faster SQLiteDateParser
...
GRDBPerformance > DateParsingTests
testParseDateComponents
old 0.296
new 0.073
testParseDate
old 0.431
new 0.181
2020-06-27 16:04:37 +02:00
Gwendal Roué
672e10a0ff
Add missing imports for SPM
2020-06-26 06:36:22 +02:00
Gwendal Roué
a0ce362197
Combine publishers
2020-06-25 19:25:29 +02:00
Gwendal Roué
4e8b231c42
Rename handleEvents arguments
2020-06-22 14:23:33 +02:00
Gwendal Roué
5c4b282e27
Refactor ValueObservation events handling
2020-06-21 09:17:12 +02:00
Gwendal Roué
dd76cdffec
ValueObservation.handleEvents
2020-06-20 19:57:51 +02:00
Alexandre Colucci
f97e0cc540
Fix inline documentation for the setupMemoryManagement() function. In GRDB 5.0.0 and later, the parameter 'application' has been removed.
2020-06-20 12:09:59 +02:00
Gwendal Roué
70714768d9
Always use snapshots apis through grdb_xxx shims
2020-06-14 15:38:16 +02:00
Gwendal Roué
ec0e8672be
Documentation, cleanup
2020-06-14 11:03:24 +02:00
Gwendal Roué
9215f88e7f
Documentation, cleanup, and checkpoint prevention
2020-06-14 10:47:27 +02:00
Gwendal Roué
510daa84a7
This is hard
2020-06-14 06:36:53 +02:00
Gwendal Roué
eacf48fef3
More snapshot-based optimization of ValueObservation with DatabasePool
...
This time, for the .immediate scheduler.
2020-06-14 06:34:08 +02:00
Gwendal Roué
0dee6425d1
Fix free function
2020-06-14 05:36:33 +02:00
Gwendal Roué
842846dbc4
Documentation
2020-06-14 05:36:12 +02:00
Gwendal Roué
f1e65fbb2c
Optimization of ValueObservation with DatabasePool thanks to SQLITE_ENABLE_SNAPSHOT
...
The difficulty is that system <sqlite3.h> does not contain the expected declarations, even when SQLite is compiled with SQLITE_ENABLE_SNAPSHOT :-(
Since snapshots are not exposed in any public API, we don't bother dealing with availability checks. We just add the missing declarations, and rely on the linker in order to spot eventual errors.
This commit is likely to break Linux builds, though.
2020-06-13 20:14:40 +02:00
Gwendal Roué
372996deb3
TODO
...
# Conflicts:
# TODO.md
2020-06-13 13:36:51 +02:00
Gwendal Roué
a95b3264de
Fix documentation
2020-06-12 14:20:29 +02:00
Gwendal Roué
8d44ad7256
Database.maximumStatementArgumentCount
2020-06-12 14:19:31 +02:00
Gwendal Roué
a136384c7d
Merge pull request #795 from groue/dev/more-checkpoint
...
Enhanced support for WAL Checkpoints
2020-06-12 12:46:52 +02:00
Gwendal Roué
e8235f8d6a
Database.columnsForUniqueKey(_:in:) does not hit the database for empty column sequences
2020-06-11 12:49:22 +02:00
Gwendal Roué
3103e6e373
Fix Swiftlint warning
2020-06-07 17:07:31 +02:00
Gwendal Roué
3a42a4bf9f
Rename checkpoint tuple members
2020-06-07 17:07:31 +02:00
Gwendal Roué
56f6984f9d
Introduce Database.checkpoint(_🔛 )
2020-06-07 17:07:31 +02:00
Gwendal Roué
5f88a400d5
DatabasePool.checkpoint(_:) is unavailable
2020-06-07 17:07:31 +02:00
Gwendal Roué
91ed7d762b
Setup busy handler as soon as possible
2020-06-07 17:07:30 +02:00
Gwendal Roué
668c1d632e
f67f9ebd4b did spot an oddity
...
This is a temp fix
2020-06-07 17:07:02 +02:00
Gwendal Roué
f67f9ebd4b
Add a sanity transaction assertion
2020-06-07 15:57:50 +02:00
Gwendal Roué
d04dda1888
Default SQLExpressible conformance for RawRepresentable
2020-06-05 12:27:42 +02:00
Gwendal Roué
d2b1853b7b
Database.debugDescription
2020-06-04 18:15:48 +02:00
Gwendal Roué
04df4ba157
Documentation
2020-06-03 19:57:43 +02:00
Gwendal Roué
780ba744f1
Database.description
2020-06-03 19:37:24 +02:00
Gwendal Roué
b47680638d
Trace statements by default
2020-06-01 07:16:48 +02:00
Gwendal Roué
30f619ca2c
Refactor database tracing
...
- Make it possible to log the database label along with the executed SQL
- Make it possible to avoid arguments expansion
- Make it possible to profile statements
2020-05-31 19:08:08 +02:00
Gwendal Roué
9ee3fd38b5
Remove mentions of unsupported iOS versions
2020-05-31 13:54:02 +02:00
Gwendal Roué
289394c7ac
Turn LockedBox and ReadWriteBox into property wrappers.
...
Also fix an old concurrency bug in tests, regarding query recording
2020-05-30 13:52:39 +02:00
Gwendal Roué
a5de2b9288
Breaking: AnyFetchRequest.asRequest(of:)
2020-05-30 10:30:07 +02:00
Gwendal Roué
4c2042c3ce
Cleanup 2bb53026ef
2020-05-25 13:04:10 +02:00
Gwendal Roué
c0217d56ca
Remove doubt about how SQLRequest uses singleResult
2020-05-10 15:34:38 +02:00
Gwendal Roué
d814ab216d
Documentation
2020-05-10 15:34:38 +02:00
Gwendal Roué
57e5735e9a
Documentation
2020-05-10 15:34:38 +02:00
Gwendal Roué
f799d5f30c
Documentation
2020-05-10 15:34:38 +02:00
Gwendal Roué
e94be4a06e
Upgrade path for FetchRequest
2020-05-10 15:34:38 +02:00
Gwendal Roué
b16a0da88c
Documentation
2020-05-10 15:34:37 +02:00
Gwendal Roué
a318d4cc82
Test upgrade path from GRDB4 to GRDB5
2020-05-10 15:34:37 +02:00