Gwendal Roué
8cba324d6e
Refactor the SQLite import
...
We can not use `#if Trait` because Xcode does not enable those compiler flags. Always count on Apple for delivering the best quality software.
So now we import the default SPM SQLite last, after all other cases have been excluded.
The GRDB framework (GRDB.xcodeproj and GRDB via CocoaPods) is distinct from the default SPM trait, so we detect it with GRDBFRAMEWORK.
2025-10-04 17:56:06 +02:00
Gwendal Roué
b752229c37
DatabaseFunction is Sendable
2024-08-25 15:42:06 +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é
c7047c4b33
Trim SQL in DatabaseError descriptoin
2023-10-08 20:07:59 +02:00
Gwendal Roué
f6e695a21d
More explicit any/some
2023-04-08 12:01:59 +02:00
Gwendal Roué
0f942c014c
Cleanup
2023-03-14 08:10:56 +01:00
Gwendal Roué
d5a41bd11b
Disable SQLITE_STATIC optimization when there are too many arguments
2023-03-13 19:33:52 +01:00
Gwendal Roué
3382280cc3
Statement.execute(arguments:) uses temporary bindings
...
Inspired by @helje5 in https://hachyderm.io/@helge@mastodon.social/109978514220902036
Thank you!!
Now, onto cursors!
2023-03-11 12:10:25 +01:00
Gwendal Roué
84940af3dc
Cleanup statement separator character set
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é
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
Gwendal Roué
051fdb37b6
Rename SQLLiteral to SQL
2021-03-21 13:33:49 +01:00
Gwendal Roué
8e2fb1fb22
Update tests
2020-09-06 13:57:16 +02:00
Gwendal Roué
5820b30cc6
DatabaseError.description: output SQLite message before statement #820
2020-08-25 19:48:00 +02:00
Gwendal Roué
d60fe3c22f
Replace import GRDBCustomSQLite with import GRDB
2020-04-04 16:44:01 +02:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
03fafa437c
Cleanup
2019-03-01 08:05:46 +01:00
Gwendal Roué
5ffc35a955
Remove SR-6067 workaround
2019-02-28 08:35:16 +01:00
Gwendal Roué
36ce78bd37
Explicit sql argument label when building prepared statements
2019-02-17 13:28:41 +01:00
Gwendal Roué
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
4bd5ace2ee
Use rawSQL as parameter name for raw SQL
2019-02-17 13:28:40 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
59162d93de
Rename Database.execute(_:String) to Database.execute(rawSQL:String)
2019-02-17 13:27:54 +01:00
Gwendal Roué
4ecef0ea11
Don't be shy on interpolation
2019-02-17 13:24:38 +01:00
Gwendal Roué
637de8b6fa
SQLiteral are passed via a literal parameter
2019-02-17 13:24:38 +01:00
Gwendal Roué
f018c7f823
Rename SQLString to SQLLiteral
2019-02-17 13:24:38 +01:00
Gwendal Roué
c2e3638e8d
More failing tests for Database.execute()
2017-11-30 08:50:42 +01:00
Gwendal Roué
81d2f21093
Cleanup
2017-11-10 08:45:05 +01:00
Gwendal Roué
1583ac0c08
Add failing test for Database.execute()
2017-11-09 14:29:35 +01:00
Gwendal Roué
4995b5bb8c
Group truncate optimization tests together
2017-10-07 06:51:13 +02:00
Gwendal Roué
fc88acc782
Add failing test for "DROP TABLE t" executed from a prepared statement.
2017-10-05 13:55:51 +02:00
Gwendal Roué
823b094b60
SE-0168
2017-08-18 14:22:14 +02:00
Gwendal Roué
06a6c982aa
SE-0148
2017-08-18 14:22:14 +02:00
Gwendal Roué
380b6676a6
Statement.sql trims white space and semicolon
2017-07-12 08:45:56 +02:00
Gwendal Roué
55e4abd534
Rename USING_SQLCIPHER to GRDBCIPHER and USING_CUSTOMSQLITE to GRDBCUSTOMSQLITE
2017-05-22 19:15:10 +02:00
Gwendal Roué
e54cec9123
Move tests to Swift Package Manager test target
2017-04-23 15:47:16 +02:00