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é
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é
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
58293befc9
BREAKING: Optional is a database value like others
2022-08-21 21:22:34 +02:00
Gwendal Roué
bf601e6810
Merge SelectStatement and UpdateStatement
...
Addresses #1015
2021-07-29 20:20:15 +02:00
Gwendal Roué
174766925a
Remove warning
2021-03-03 20:04:08 +01:00
Gwendal Roué
b7c57dc7f2
Attempt at clarifying the (complex) decoding api
...
The difficulty is due to fast decoding of StatementColumnConvertible, and non-copied Data, from raw SQLite statement.
We want it to be inlinable, and possible in nested rows.
Added missing tests for nested rows
2021-02-25 20:45:12 +01:00
Gwendal Roué
cb2405a8b9
RowDecodingError
2021-02-21 14:21:04 +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é
94d1134ec2
fetchSet
2020-07-12 10:49:47 +02:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
d60fe3c22f
Replace import GRDBCustomSQLite with import GRDB
2020-04-04 16:44:01 +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
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
95274c57dd
SQLCipher 4: adapt tests for past-error Cursor.next()
2019-04-20 15:32:01 +02:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +02:00
Gwendal Roué
1f50b4fefe
Integrate SQLCipher as a CocoaPod
2019-04-19 08:33:19 +02:00
Gwendal Roué
36ce78bd37
Explicit sql argument label when building prepared statements
2019-02-17 13:28:41 +01:00
Gwendal Roué
4f350631ff
Remove fetching methods from SQLLiteral.
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é
6e80c748d2
SQLRequest(rawSQL:arguments:adapter:)
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é
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é
b36cf84b23
Fetch StatementColumnConvertible from SQLString
2019-02-17 13:24:37 +01:00
Gwendal Roué
66541922a4
More cleanup
2018-08-12 12:27:47 +02:00
Gwendal Roué
ef10e2e8ed
General cleanup:
...
- rename ValueConversionDebuggingInfo to ValueConversionContext
- allow missing value conversion context (when decoding a raw DatabaseValue)
- rename ColumnCursor to FastDatabaseValueCursor
- rename NullableColumnCursor to FastNullableDatabaseValueCursor
2018-08-11 19:45:58 +02:00
Gwendal Roué
d39f02113c
Restore T.fetchXXX(db, request) APIs which were removed in PR #311
2018-04-16 08:50:55 +02:00
Gwendal Roué
f605e049fd
Rename TypedRequest to FetchRequest, drop Request
2018-02-26 13:12:33 +01:00
Gwendal Roué
aa064029ec
More typed cursor tests
2017-09-06 08:58:27 +02:00
Gwendal Roué
8ccc23333d
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
2017-08-23 08:16:30 +02:00
Gwendal Roué
c5da564fb3
Use built-in SQLite3 module when available
2017-08-19 15:21:44 +02:00
Gwendal Roué
06a6c982aa
SE-0148
2017-08-18 14:22:14 +02:00
Gwendal Roué
10e669423f
Use the dbValue identifier for variables of type DatabaseValue
2017-06-01 08:35:14 +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é
f858bcbe5b
Rename Request.fetching(_:) to Request.asRequest(of:)
2017-05-22 18:55:51 +02:00
Gwendal Roué
cd107711a9
Rename Request.bound(to:) to Request.fetching(_:)
2017-05-22 18:37:46 +02:00
Gwendal Roué
1799fe1ff9
Consistently crash for all failed conversions from DatabaseValue
2017-05-22 13:51:39 +02:00
Gwendal Roué
e54cec9123
Move tests to Swift Package Manager test target
2017-04-23 15:47:16 +02:00