Gwendal Roué
c97f633022
More documentation of database schema methods
2024-10-13 11:28:14 +02:00
Gwendal Roué
2c49a69f43
Raise a fatal error when the users filters a database view by primary key
...
Fixes #1648
2024-10-12 15:41:36 +02:00
Gwendal Roué
6a29d6c081
[BREAKING] Prefer Collection over Sequence for filter(keys:) and derived APIs
...
We were frequently turning those sequences into an Array in order to check their emptiness, and generally were not sure we'd iterate a sequence only once.
Also use `some Sequence` and `some Collection` whenever possible.
2024-09-08 12:52:27 +02:00
Gwendal Roué
9e1ff42249
[BREAKING] Rename CSQLite to GRDBSQLite
...
Fix #1528
2024-08-24 18:15:57 +02:00
Gwendal Roué
9cd1d849cc
[BREAKING] Stop exporting SQLite
2024-08-24 17:25:35 +02:00
Gwendal Roué
43ced9b2f0
Trivial Sendable conformances
...
Either added, either made explicitly unavailable.
2024-03-17 18:25:04 +01:00
Ben Barnett
27a4215424
Add schemaName parameter to foreign key checking functions
2023-12-08 18:22:49 +00:00
Ben Barnett
65167ec7da
Add schemaName parameter to table/view/triggerExists()
2023-12-08 18:22:49 +00:00
Ben Barnett
73489fc0e7
Add schemaName parameter to indexes(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
1aca8efa65
Add schemaName parameter to foreignKeys(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
a22bf83ae8
Split duplicate nested conditions into separate function
2023-12-07 18:32:34 +00:00
Ben Barnett
f00a974211
Add schemaName parameter to columns(in:)
2023-12-06 20:49:48 +00:00
Ben Barnett
ac475cc158
Add schemaName parameter to primaryKey(_:)
2023-12-06 20:32:17 +00:00
Gwendal Roué
8afd986790
Fix failing tests for Database.notifyChanges(in:) and master tables
2023-11-25 15:32:35 +01:00
Gwendal Roué
918afbd33e
Fix failing tests for Database.notifyChanges(in:) and regular tables
2023-11-25 14:39:13 +01:00
Gwendal Roué
206bf209af
Fix unneeded_synthesized_initializer Swiftlint warning
2023-07-29 10:00:42 +02:00
Gwendal Roué
dd85e699e2
Help handling of columns with no declared type
2023-07-09 17:16:08 +02:00
Gwendal Roué
c647840485
PrimaryKeyInfo exposes column types
2023-07-09 17:16:08 +02:00
Gwendal Roué
f633be4ba1
Fix test for #1360
2023-04-12 08:02:38 +02:00
Gwendal Roué
abaa14db83
Fix typo
2023-01-30 08:41:32 +01:00
Gwendal Roué
ac214e6760
SE-0345: if let shorthand for shadowing an existing optional variable
2023-01-30 08:00:47 +01:00
Gwendal Roué
d3c289a320
Availability checks cleanup
2023-01-22 12:37:40 +01:00
Gwendal Roué
0bc49460d7
DatabaseSnapshotPool uses its own pool of connections
...
In the previous implementation, the snapshot pool would use the same reader connections as the database pool. This would create problem with reentrant reads. Let's make things simple, and not share any database connection.
2022-11-17 18:36:17 +01:00
Gwendal Roué
a71eb3d662
Introduce WALSnapshotToken
2022-11-13 18:28:54 +01:00
Gwendal Roué
ca079cab17
TODO
2022-11-08 19:28:09 +01:00
Gwendal Roué
754ced7b5e
Enhance DocC output for ForeignKeyViolation
2022-11-07 22:50:50 +01:00
Gwendal Roué
fb81ec6792
Migrations Guide in now a DocC article
2022-11-07 22:44:37 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
82b4d90a82
Xcode 14 RC doesn't ship with the Swift 5.6 stdlib
...
https://forums.swift.org/t/xcode-14-rc-cannot-specialize-protocol-type/60171
2022-09-09 08:16:55 +02:00
Gwendal Roué
040e5d9d87
WITHOUT ROWID check: prefer PRAGMA table_list when available
...
This avoids the undesired errors described in #945 .
2022-08-28 12:28:39 +02:00
Gwendal Roué
189430c1fe
PRAGMA table_list
2022-08-28 12:28:39 +02:00
Gwendal Roué
2a5626efea
Replace if let x = x with if let x
2022-08-22 20:40:00 +02:00
Gwendal Roué
5243db7fbc
Spelling
2022-08-21 21:22:34 +02:00
Gwendal Roué
c38d903f4d
Make RequestProtocols.swift easier to read
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é
5b7c58faf4
Make Database+Schema.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é
36892fee55
BREAKING: Bump minimum SQLite version to 3.19.3
2022-08-21 21:22:34 +02:00
Gwendal Roué
a9fcf1b9c1
SE-0335, SE-0341, SE-0346, SE-0352, SE-0358: some, any, primary associated types
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é
9d7e27ced1
Add support for index origin
2022-07-25 08:07:27 +02:00
Gwendal Roué
b974dfa9a7
Use fetchSet when available
2022-03-04 11:40:42 +01:00
BB9z
6d3f309cad
Fix typos
2022-01-19 00:10:42 +08:00
Gwendal Roué
94ff9f3e45
The casing of ColumnInfo.type depends on the SQLite version
2022-01-09 14:28:00 +01:00
Gwendal Roué
7001b60cf7
More support for association existence check
...
New: support for associated tables WITHOUT ROWID with a compound primary key
New: support for associated views
Checking for the existence of associated CTEs is still not implemented (it fails with "table does not exist" error).
2021-12-12 16:43:40 +01:00
Gwendal Roué
dcc2d211b2
Database.primaryKey() fails for views
2021-12-12 16:14:25 +01:00
Gwendal Roué
bc2a66e40f
Don't throw any error when checking if a table is WITHOUT ROWID
2021-12-12 13:29:02 +01:00
Gwendal Roué
93c4249619
ForeignKeyViolation.databaseError(_:)
2021-11-16 08:51:33 +01:00
Gwendal Roué
ebc8524706
Add missing public qualifiers
2021-11-16 08:45:34 +01:00
Gwendal Roué
ea41f34f3d
Quote table name in raw SQL query
2021-11-16 08:40:16 +01:00