Gwendal Roué
f303664808
Cleanup
2018-10-28 16:20:57 +01:00
Gwendal Roué
e0a9cced4a
First tests for ValueObservation: focus on reducers
2018-10-28 13:27:43 +01:00
Gwendal Roué
09581c6ae0
ValueObservation factory requires a DatabaseRegionConvertible. Introduce AnyDatabaseRegionConvertible.
2018-10-28 11:45:49 +01:00
Gwendal Roué
fc3aca792f
Replace InitialDispatch with ValueScheduling
2018-10-28 11:28:31 +01:00
Gwendal Roué
a043c4c29e
QoS are hard
2018-10-27 23:01:24 +02:00
Gwendal Roué
ec5451ee70
Cleanup
2018-10-27 17:18:03 +02:00
Gwendal Roué
7c4462641e
ValueObservation creation is always done with a factory initializer
2018-10-27 17:16:03 +02:00
Gwendal Roué
82efe7ca23
AnyValueReducer
2018-10-27 17:06:23 +02:00
Gwendal Roué
052d2e3008
Value (string, int, etc.) observation, with uniquing
2018-10-27 16:41:42 +02:00
Gwendal Roué
de227bdce1
Bake uniquing right into ValueObservation: introduce ValueReducer
2018-10-27 16:12:42 +02:00
Gwendal Roué
697b2af61d
Wrap long lines
2018-10-27 05:11:19 +02:00
Gwendal Roué
ff4f6f3b12
Cleanup
2018-10-27 04:59:24 +02:00
Gwendal Roué
31b688d801
ValueObservationn has a QoS
2018-10-27 04:24:17 +02:00
Gwendal Roué
f694437f5b
Add missing public qualifiers
2018-10-27 04:23:45 +02:00
Gwendal Roué
69853d7901
Now that user implementations of DatabaseWriter are no longer supported...
...
...stop pretending we have to implement concurrentRead
on top of the deprecated readFromCurrentState.
And this fixes #419 :-)
2018-10-26 16:53:30 +02:00
Gwendal Roué
9c71356e3d
Honor ValueObservation.readonly
2018-10-26 09:10:26 +02:00
Gwendal Roué
2341523c41
API cleanup
2018-10-26 08:50:59 +02:00
Gwendal Roué
0df4815086
Move ValueObservation support to DatabaseReader
2018-10-25 20:39:04 +02:00
Gwendal Roué
fe0f238f32
Cleanup
2018-10-25 08:49:57 +02:00
Gwendal Roué
fda04a105d
ValueObservation: extract callbacks
2018-10-25 08:39:52 +02:00
Gwendal Roué
e5d97c15ad
Looking for a good API
2018-10-25 08:05:55 +02:00
Gwendal Roué
ce95ff7278
Move towards observation from reader
2018-10-24 19:17:11 +02:00
Gwendal Roué
33927e7f4d
FetchResultsObserver
2018-10-23 13:24:46 +02: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
Gwendal Roué
fc5e92954b
SQLCipher, too, can't erase a database if there are cached prepared statements.
2018-10-04 13:34:35 +02:00
Gwendal Roué
8c3606fe4b
Fix failing test for #424
2018-10-04 07:58:36 +02:00
Gwendal Roué
a5a8b2ac40
Fix failing test for custom FTS5 tokenizer in DatabasePool
...
Tokenizer are now added to new reader connections.
2018-09-22 13:00:34 +02:00
Gwendal Roué
b9a878bb20
Cleanup
2018-09-11 08:56:29 +02:00
Gwendal Roué
8c479a863a
Documentation
2018-09-09 20:00:03 +02:00
Gwendal Roué
58a48b73ae
concurrentRead documentation
2018-09-09 19:55:07 +02:00
Gwendal Roué
41629ec9aa
Future.wait() must be called only once
2018-09-09 16:00:01 +02:00
Gwendal Roué
106812c02c
Fix SPM
2018-09-09 13:42:35 +02:00
Gwendal Roué
da58e228c0
Document Future
2018-09-09 13:18:15 +02:00
Gwendal Roué
9bfe893908
DatabaseWriter.concurrentRead replaces readFromCurrentState
2018-09-09 13:12:35 +02:00
Gwendal Roué
03a781075e
Cleanup
2018-09-06 08:50:56 +02:00
Gwendal Roué
60afc9ee06
Tweak existence checks for tables, views and triggers
2018-09-06 08:31:27 +02:00
Gwendal Roué
22165984c3
Cursor.isEmpty()
2018-09-06 08:29:57 +02:00
Gwendal Roué
e5cd3a8994
SE-0206
2018-08-30 16:34:30 +02:00
Gwendal Roué
ff595eeaef
Compile with both Swift 4.1 and Swift 4.2
2018-08-30 16:34:30 +02:00
Gwendal Roué
566f42e8d0
Remove useless conversion contexts
2018-08-26 14:07:36 +02:00
Gwendal Roué
f159927724
SE-0075
2018-08-26 12:07:19 +02:00
Gwendal Roué
ae66563654
Documentation + test for mixed arguments
2018-08-23 14:52:59 +02:00
Gwendal Roué
d3a9667f10
Cleanup
2018-08-22 13:04:24 +02:00
Gwendal Roué
adf5695c20
Move StatementCache to Database+Statements.swift
2018-08-22 12:56:12 +02:00
Gwendal Roué
aa8cb60fad
SQLCipher has learned SQLITE_PREPARE_PERSISTENT
2018-08-22 12:52:13 +02:00
Gwendal Roué
65d99879a8
SQLCipher has learned SQLITE_PREPARE_PERSISTENT
2018-08-22 12:50:07 +02:00
Gwendal Roué
b14f1b9fdc
SQLCipher has learned sqlite3_prepare_v3
2018-08-22 08:53:01 +02:00
Gwendal Roué
46511e507e
Avoid code duplication in Database.setupTrace
...
Also, use sqlite3_trace_v2 with SQLCipher
2018-08-22 08:35:54 +02:00
Gwendal Roué
8f5eee0130
Avoid code duplication in Database.closeConnection
2018-08-22 08:01:26 +02:00
Gwendal Roué
209b3d0d37
Fix SPM and -O builds
2018-08-20 23:32:38 +02:00