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é
|
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é
|
36892fee55
|
BREAKING: Bump minimum SQLite version to 3.19.3
|
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é
|
fe225fe452
|
BREAKING: Remove deprecated methods
|
2022-08-21 19:21:57 +02:00 |
|
Gwendal Roué
|
72e8dd2816
|
Cleanup
|
2022-01-31 20:20:02 +01:00 |
|
Gwendal Roué
|
75f72472ff
|
Cleanup
|
2022-01-31 08:37:57 +01:00 |
|
Gwendal Roué
|
4e65425c00
|
Cleanup
|
2022-01-30 14:41:29 +01:00 |
|
Gwendal Roué
|
b8c0e9d2c2
|
Fix failing test for cached statement which does not prevent the truncate optimization
|
2022-01-30 14:24:28 +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é
|
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é
|
ed6c5438b9
|
Move DatabaseCursor state to Statement
|
2022-01-14 13:13:34 +01:00 |
|
Gwendal Roué
|
253c878367
|
Cleanup
|
2021-08-17 08:30:51 +02:00 |
|
Gwendal Roué
|
f5b1219549
|
SQLStatementCursor no longer allocates a copy of the sql C string
Based on https://forums.swift.org/t/stable-pointer-into-a-c-string-without-copying-it/51244
|
2021-08-16 18:59:55 +02:00 |
|
Gwendal Roué
|
dc3fac95db
|
allStatements() can build statements without any arguments
|
2021-07-30 14:24:08 +02:00 |
|
Gwendal Roué
|
5cd34da6ca
|
Use allStatements() from makeStatement()
|
2021-07-30 08:50:15 +02:00 |
|
Gwendal Roué
|
c9eb67dae8
|
Database.allStatements(sql:literal:)
Addresses #1015
|
2021-07-29 22:41:49 +02:00 |
|
Gwendal Roué
|
bf601e6810
|
Merge SelectStatement and UpdateStatement
Addresses #1015
|
2021-07-29 20:20:15 +02:00 |
|
Zev Eisenberg
|
8b060e6b09
|
Add angle brackets to URLs to make them clickable in Xcode's rendered documentation.
|
2021-07-20 20:53:58 -04:00 |
|
Gwendal Roué
|
2ce588ad76
|
Cached statements from a SQL literal
Addresses https://github.com/groue/GRDB.swift/issues/985#issuecomment-859570434
|
2021-06-19 13:57:53 +02:00 |
|
Gwendal Roué
|
051fdb37b6
|
Rename SQLLiteral to SQL
|
2021-03-21 13:33:49 +01:00 |
|
Gwendal Roué
|
5aa1184e68
|
Database.makeSelectStatement(literal:)
|
2021-03-18 19:24:24 +01:00 |
|
Gwendal Roué
|
a6f7d9ba86
|
Database.makeUpdateStatement(literal:) accepts all arguments, or no arguments
|
2021-03-18 18:48:06 +01:00 |
|
Gwendal Roué
|
fdc47d7158
|
Database.makeUpdateStatement(literal:)
|
2021-03-18 17:08:25 +01:00 |
|
Gwendal Roué
|
1f4db99a37
|
Documentation fix
|
2021-03-17 20:26:10 +01:00 |
|
Gwendal Roué
|
ac436a2770
|
Make SQLLiteral less painful to use
|
2021-03-14 11:09:29 +01:00 |
|
Gwendal Roué
|
065913f6ab
|
Remove useless makeSelectStatement(literal:)
|
2020-07-11 19:52:33 +02:00 |
|
Gwendal Roué
|
002287ca28
|
Close FetchRequest, make it visitable
|
2020-07-11 17:30:11 +02:00 |
|
Gwendal Roué
|
4c2042c3ce
|
Cleanup 2bb53026ef
|
2020-05-25 13:04:10 +02:00 |
|
Gwendal Roué
|
e94be4a06e
|
Upgrade path for FetchRequest
|
2020-05-10 15:34:38 +02:00 |
|
Gwendal Roué
|
e05b8b2b47
|
Unify SQLGenerationContext
|
2020-04-30 17:56:15 +02:00 |
|
Gwendal Roué
|
a15233eff1
|
SQLGenerationContext no longer needs to be mutated
|
2020-04-29 21:59:04 +02:00 |
|
Gwendal Roué
|
8cb75dd814
|
Subqueries wip
|
2020-04-28 21:03:58 +02:00 |
|
Gwendal Roué
|
0372c1dd63
|
Complete #747: export the underlying SQLite library
|
2020-04-12 07:27:50 +02:00 |
|
Gwendal Roué
|
56f332122d
|
The observed region is always recorded
|
2020-03-24 22:59:07 +01:00 |
|
Gwendal Roué
|
9aa67f9db9
|
SE-0255: Implicit returns from single-expression functions
|
2020-03-08 23:12:46 +01:00 |
|
Gwendal Roué
|
ee64f8ff9d
|
Rename statement argument methods
|
2020-03-04 08:43:31 +01:00 |
|
Gwendal Roué
|
812f30fb75
|
Remove SQLLiteral.generate()
|
2020-01-24 08:55:55 +01:00 |
|
Gwendal Roué
|
86e32cdc23
|
Cleanup SQLGenerationContext
|
2020-01-24 08:55:55 +01:00 |
|
Gwendal Roué
|
65c94590eb
|
Make SQLLiteral able to be qualified with a table alias
|
2020-01-24 08:55:55 +01:00 |
|
Gwendal Roué
|
d7ef314a15
|
SQLLiteral is now a promise that needs an SQLGenerationContext
|
2020-01-24 08:55:55 +01:00 |
|
Gwendal Roué
|
6656f72782
|
Rename "lock prevention" to "suspension"
|
2019-12-12 08:47:49 +01:00 |
|
Gwendal Roué
|
bbf8e773f8
|
Remove useless code
|
2019-12-03 19:17:35 +01:00 |
|
Gwendal Roué
|
41cd4c2140
|
Check for aborted transactions before checking for lock prevention
|
2019-12-03 09:01:03 +01:00 |
|
Gwendal Roué
|
12106387d1
|
Cleanup
|
2019-12-03 08:51:10 +01:00 |
|
Gwendal Roué
|
7f66c85e67
|
Cleanup
|
2019-12-03 08:11:14 +01:00 |
|
Gwendal Roué
|
9efd5965ea
|
Cleanup
|
2019-12-02 20:56:06 +01:00 |
|
Gwendal Roué
|
2b4a920732
|
Cleanup
|
2019-12-02 20:39:55 +01:00 |
|
Gwendal Roué
|
16025356bf
|
Adapt lock prevention to the journal mode
|
2019-12-02 20:27:39 +01:00 |
|