Micah Moore
c24bf5d118
SQLCipher adjustments to support forks which want to enable SQLCipher using traits/swiftSettings
...
- Adds Database+SQLCipher extension with SQLCipher operations, enabled by #if SQLITE_HAS_CODEC
- Adjusts Import Statements to import SQLCipher when SQLCipher trait is enabled (or SQLCipher swiftSetting is set)
2026-01-14 11:32:48 -05:00
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é
43ced9b2f0
Trivial Sendable conformances
...
Either added, either made explicitly unavailable.
2024-03-17 18:25:04 +01:00
Gwendal Roué
9ff58c32e7
Use CChar instead of Int8 when we deal with C strings
2023-07-29 11:13:41 +02:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
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
jason
fbc0ee77bb
Change init to fix Swift error
2021-09-08 13:57:24 -07:00
Gwendal Roué
151a457251
Inline StatementColumnConvertible decoding
2021-08-28 14:53:54 +02:00
Gwendal Roué
cb2405a8b9
RowDecodingError
2021-02-21 14:21:04 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
6fd3a7b225
Merge branch 'development' into GRDB5
...
# Conflicts:
# CHANGELOG.md
# README.md
2020-04-25 13:21:20 +02:00
Matt Tancock
62c6187ad4
Remove Format's Codable conformance. Use a singleValueContainer
2020-04-20 14:42:02 +01:00
Matt Tancock
18154f29be
Simplify encoding format and add tests
2020-04-20 13:36:23 +01:00
Matt Tancock
bffe4d32f5
Add Codable support to DatabaseDateComponents
2020-04-17 16:16:34 +01:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Gwendal Roué
1f50b4fefe
Integrate SQLCipher as a CocoaPod
2019-04-19 08:33:19 +02:00
Gwendal Roué
0b77d0d745
Better feedback for conversion errors from StatementColumnConvertible
2018-08-15 16:10:51 +02:00
Gwendal Roué
ead89420c4
Avoid undefined behavior (UnsafePointer documentation is scary)
2018-05-31 17:37:46 +02:00
Florent Pillet
2de040a6f1
Use String(format: ...)
...
... instead of `NSString(format: ...) as String`
2018-05-12 15:39:59 +02:00
Gwendal Roué
4e57bf5a0e
Fix a youth error: DatabaseDateComponents initializer from DateComponents is no longer failable
2018-04-21 15:27:21 +02:00
Gwendal Roué
85fbf64068
Add missing imports (should fix travis issues)
2018-04-20 19:17:24 +02:00
Gwendal Roué
282255b841
No need for useScanfStrategy any longer
2018-04-20 19:14:58 +02:00
Gwendal Roué
11a4a6acbd
Documentation
2018-04-20 18:41:58 +02:00
Gwendal Roué
c70689fe54
Check useScanfStrategy in DatabaseDateComponents.init(sqliteStatement:index:)
...
...so that we can eventually compare gains
2018-04-20 18:34:19 +02:00
Gwendal Roué
936b31f1f0
DatabaseDateComponents adopts StatementColumnConvertible
...
We'll need benchmarks to evaluate the gain, here
2018-04-20 14:04:12 +02:00
Gwendal Roué
e9a668ca56
SQLiteDateParser: no more static methods
2018-04-20 13:31:35 +02:00
Matt Greenfield
362c4baeca
initial scanf() based date string parser
2018-04-16 14:02:15 +07:00
Gwendal Roué
85d3c584ef
Swift 4.1 compatibility (SE-0184 , SE-0187)
2018-03-12 18:20:10 +01:00
Gwendal Roué
10e669423f
Use the dbValue identifier for variables of type DatabaseValue
2017-06-01 08:35:14 +02:00
Gwendal Roué
2a5bdbcbdc
BROKEN - Xcode 8 WIP
2016-06-14 09:08:43 +02:00
Gwendal Roué
7c4ff7677d
swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a
2016-06-02 08:38:15 +02:00
Gwendal Roué
8cdacf3899
Rename SQLiteStatementConvertible to StatementColumnConvertible + Project organization
2016-02-07 08:51:28 +01:00