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
Gwendal Roué
af2d65ef49
Fix Swiftlint warnings
2021-11-07 10:32:00 +01:00
Gwendal Roué
eb9d0bce58
Documentation
2021-11-07 08:16:58 +01:00
Gwendal Roué
c81a4dbf32
Distinguish "FOREIGN KEY constraint failed" from "FOREIGN KEY constraint violation" errors
2021-11-04 18:44:44 +01:00
Gwendal Roué
127c4e0440
Rename methods that check foreign keys
2021-11-04 18:26:24 +01:00
Gwendal Roué
6193c6aa00
foreignKeyViolations() and checkForeignKeyViolations()
2021-11-04 14:19:11 +01: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é
52bc7eb7c6
Cleanup
2021-05-01 14:40:20 +02:00
Gwendal Roué
e8802fb010
Fix #971
2021-05-01 14:32:01 +02:00
Gwendal Roué
c0a3e61253
DatabaseRegion is now case-preserving and case-insensitive
2021-04-10 16:27:45 +02:00
Gwendal Roué
c02901b335
Fix canonicalName(_:ofType:)
2021-04-10 16:27:45 +02:00
Gwendal Roué
914ad1b882
Address #945 by running a distinctive query
...
When a user finds this query in the error log, it will be easier for everybody to understand why it happens.
2021-03-27 14:56:08 +01:00
Gwendal Roué
b13922b76e
Database schema cache distinguishes the main from the temp schema
...
Addresses https://github.com/groue/GRDB.swift/pull/946#issuecomment-805756799
2021-03-27 14:50:25 +01:00
Gwendal Roué
920417beb3
Replace protocols with enums
2021-02-14 18:28:15 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
ed32e44bc2
DRY
2020-12-23 10:31:16 +01:00
Gwendal Roué
67e10926db
Restore logic
2020-10-31 13:09:49 +01:00
Gwendal Roué
e971e210a3
Update documentation about PRAGMA table_info and table_xinfo
2020-10-31 13:09:05 +01:00
Michael Allman
9c6f19f55f
Condition table column info query on SQLite version
2020-10-25 11:42:43 -07:00
Michael Allman
071bbc7905
Initial commit for generated column support
2020-10-19 21:25:36 -07:00
Gwendal Roué
ba98aab046
Fix failing test for #840
2020-09-26 14:46:39 +02:00
Gwendal Roué
86b9616dd7
DatabasePool readers don't invalidate their database schema cache until schema is actually changed.
2020-07-25 18:20:43 +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é
e8235f8d6a
Database.columnsForUniqueKey(_:in:) does not hit the database for empty column sequences
2020-06-11 12:49:22 +02:00
Gwendal Roué
9006c701b3
Replace the expectsSingleResult hint with an analysis of the query
2020-04-30 14:14:07 +02:00
Gwendal Roué
1ea5d1713a
Cleanup
2020-04-12 10:04:09 +02:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
27120643b9
SE-0255: Implicit returns from single-expression functions
2020-04-09 17:16:23 +02:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
7865b0a2ee
SE-0249: Key Path Expressions as Functions
2020-03-08 19:58:51 +01:00