Gwendal Roué
6864e6b2fb
Enhance registerAccess(to:) documentation
2022-11-14 08:47:58 +01:00
Gwendal Roué
cbac0e7286
Enhance Configuration.threadingMode documentation
2022-11-13 10:54:40 +01:00
Gwendal Roué
638e586dbc
Expose Database.registerAccess(to:)
...
This helps tools that intend to declare an observed region without directly accessing it. This will be necessary for (future) snapshot-based observations that postpone actual database access.
2022-11-13 10:54:40 +01:00
Gwendal Roué
5d50e396c1
Enhance Configuration documentation
2022-11-12 11:55:37 +01:00
Gwendal Roué
1625bc83f8
Documentation organization
2022-11-11 11:34:02 +01:00
Gwendal Roué
3014ddb00a
Enhance Documentation
2022-11-09 21:52:22 +01:00
Gwendal Roué
71880a9b8e
Enhance Documentation
2022-11-09 13:20:08 +01:00
Gwendal Roué
14fb1945be
Fix documentation
2022-11-08 22:57:48 +01:00
Gwendal Roué
33cdf6f270
Extract <doc:DatabaseSchema>
2022-11-08 19:28:13 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
202b3e5620
Encapsulate ValueObservation database accesses
...
Also, enhance Database.isolated(readOnly:) by not creating a savepoint if the database is already inside a transaction.
2022-09-04 10:11:22 +02:00
Gwendal Roué
f2859ff8bf
Use SQLITE_OPEN_EXRESCODE when available
2022-08-28 12:50:47 +02:00
Gwendal Roué
84940af3dc
Cleanup statement separator character set
2022-08-21 21:22:34 +02:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
496c2ae359
Make Database+Statements.swift easier to read
2022-08-21 21:22:34 +02:00
Gwendal Roué
0658808028
Make Database.swift easier to read
...
Enhance documentation, and rename some types and variables.
2022-08-21 21:22:34 +02:00
Gwendal Roué
fb6ea57d74
Don’t setup database observation in read-only connections.
...
Observation of read-only connections has turned useless since read-only transactions are no longer reported to TransactionObserver, in #1213
2022-08-21 21:22:34 +02:00
Gwendal Roué
0879311646
Make TransactionObserver.swift easier to read
...
Add some documentation, and rename some types and variables.
2022-08-21 21:22:34 +02:00
Gwendal Roué
36892fee55
BREAKING: Bump minimum SQLite version to 3.19.3
2022-08-21 21:22:34 +02:00
Gwendal Roué
11a6d53d8a
SE-0326: closure result type inference
...
https://github.com/apple/swift-evolution/blob/main/proposals/0326-extending-multi-statement-closure-inference.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
dd55175978
SE-0345: if let x { }
...
https://github.com/apple/swift-evolution/blob/main/proposals/0345-if-let-shorthand.md
2022-08-21 21:22:34 +02:00
Gwendal Roué
458e1e2675
BREAKING: throwing DatabaseQueue() initializer
...
As a consequence, FTS3.tokenize(_:) is a throwing method as well.
2022-08-21 21:22:33 +02:00
Gwendal Roué
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
8dc0168841
Database.sqliteConnection setter is private
2022-07-24 15:14:35 +02:00
Gwendal Roué
23fa42a3e4
Make Database.releaseMemory() public
...
This allows us to document how to release memory asynchronously with a DatabaseQueue (in the next commit)
2022-07-09 13:55:39 +02:00
Gwendal Roué
38c0d68db7
WALSnapshot
...
SQLITE_ENABLE_SNAPSHOT is available from Xcode 14 :-)
2022-06-24 16:48:38 +02:00
Gwendal Roué
fb18a3938f
Database.isolated(readOnly: true) avoids triggering database observation
...
Fix failing test for #1209
2022-04-30 15:27:20 +02:00
Gwendal Roué
5082207bb0
Don't notify read-only transactions
2022-04-30 15:27:20 +02:00
Gwendal Roué
06b5367053
Default transaction kind is .deferred in read-only connections
...
This applies to both connections open in read-only mode, and pragma query_only.
2022-04-30 14:29:31 +02:00
Gwendal Roué
6ab3fea8fb
Refactor ValueObservation
2022-03-17 18:44:30 +01:00
Gwendal Roué
72e8dd2816
Cleanup
2022-01-31 20:20:02 +01:00
Gwendal Roué
c60b8cfc53
Refactor prevention of truncate optimization
...
We now always use the same authorizer, which is always ready to prevent truncate optimization depending on the current transaction observers.
2022-01-30 14:07:43 +01:00
Gwendal Roué
426044154c
Fix public statement arguments for system SQLite
2022-01-29 15:54:39 +01:00
Gwendal Roué
fd22fac5c0
Don't shed too much light on expandedSQL & expandedDescription properties
2022-01-29 15:12:41 +01:00
Gwendal Roué
fc5138ae91
Configuration.publicStatementArguments
...
This flags allows database errors and trace events to hide or show statement arguments by default.
2022-01-28 13:57:12 +01:00
Gwendal Roué
d3985c7ebf
TraceEvent.description no longer contains statement arguments
...
Use TraceEvent.expandedDescription in order to see statements arguments
2022-01-27 19:30:00 +01:00
Gwendal Roué
ed6c5438b9
Move DatabaseCursor state to Statement
2022-01-14 13:13:34 +01:00
Gwendal Roué
b2fabf5fc3
Strict tables need REAL and ANY column types
2022-01-09 17:01:37 +01:00
Gwendal Roué
790c054a28
Fix Swiftlint warnings
2022-01-09 14:43:27 +01:00
Gwendal Roué
4aa37f6169
Expert users need raw access to expert values
2022-01-06 13:52:09 +01:00
Michael Allman
a71639159b
Add DatabaseBackupProgress and update the documentation
2021-12-15 01:52:25 -05:00
Michael Allman
bedf2dbcd4
Revise and correct some names and backup code documentation
2021-12-08 10:23:11 -08:00
Michael Allman
13e195db40
Revise incremental backup API to report progress via a throwing callback
...
function
2021-12-08 09:37:10 -08:00
Michael Allman
087ad10086
Add an API to track progress of and cancel backups in progress, for both
...
the DatabaseReader/DatabaseWriter API and Database API
2021-12-08 09:37:10 -08:00
Michael Allman
ab6f18e46d
Initial commit of code to implement progress-reporting database backups
2021-12-08 09:37:10 -08:00
Gwendal Roué
bb2ce74125
Add helper method Database.isolated(readOnly:)
2021-12-02 09:45:28 +01:00
Gwendal Roué
20cb50f52d
Public close() method
2021-10-31 18:12:13 +01:00
Gwendal Roué
42045ad8fb
Merge remote-tracking branch 'origin/development' into pr1029
2021-08-29 08:37:13 +02:00
Gwendal Roué
59c4d42076
Remove test warnings with BUILD_LIBRARY_FOR_DISTRIBUTION
2021-08-21 14:08:46 +02:00