Gwendal Roué
5d9e853f24
Fix typos in code samples
2026-11-01 20:45:05 +01:00
Gwendal Roué
7a216d7d34
Fix typos in public documentation
2026-11-01 20:45:05 +01:00
Gwendal Roué
de0ce29d73
Encode strings with a NUL character
...
Inspired from #1880 by @nesevis
2026-09-26 16:34:14 +02:00
Gwendal Roué
fe3b957e5f
Add missing Foundation imports
2026-06-10 12:55:39 +02:00
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é
cf1702630f
DatabaseAggregate is SendableMetatype
...
DatabaseAggregate does not support isolated conformances: it must be able to aggregate values whenever a database access is performed. This can happen in a nonisolated fashion.
2025-09-10 07:12:52 +02:00
Gwendal Roué
3f69614405
DatabaseFunction with raw xFunc
...
No use right now, but I was really bugged that we could not use raw sqlite3_result_xxx methods from custom functions.
2025-09-02 08:09:16 +02:00
Gwendal Roué
f635aea2f2
Update more documentation with the closure syntax
2025-05-10 16:38:02 +02:00
Gwendal Roué
a5806a0020
[BREAKING] DatabaseFunction is no longer Hashable
2024-08-25 15:42:06 +02:00
Gwendal Roué
300e5fec6b
DatabaseFunction is Identifiable
2024-08-25 15:42: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é
f0fe5ff017
TODO GRDB7
2023-11-02 14:08:15 +01:00
Gwendal Roué
2603b6ea03
Support for ORDER BY and FILTER in aggregate functions
2023-11-02 14:03:52 +01:00
Gwendal Roué
8cc52983b7
Introduce SQLFunctionFlags
2023-10-01 15:39:47 +02: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é
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é
458e1e2675
BREAKING: throwing DatabaseQueue() initializer
...
As a consequence, FTS3.tokenize(_:) is a throwing method as well.
2022-08-21 21:22:33 +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é
bac7b6b0e5
Refactor function calls
...
and make it possible to express other DISTINCT aggregates than COUNT: SUM(DISTINCT ...), etc.
2021-03-06 13:25:25 +01: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é
d74c5264d3
Update documentation for functions, collations, and tokenizers
2020-09-06 18:28:22 +02:00
Gwendal Roué
df92e350c0
Documentation
2020-07-11 20:29:47 +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é
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
f79b60083e
Remove TODO and document why
2020-01-06 08:36:53 +01: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é
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +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é
8cd49082ec
SE-0205 withUnsafePointer(to:_:) and withUnsafeBytes(of:_:) for immutable values
2019-02-09 09:56:12 +01:00
Gwendal Roué
0dbfe7d9e3
GRDB 4.0 TODO
2019-02-09 09:50:32 +01:00
Gwendal Roué
fb8946254d
Swift 5: update calls to Data.withUnsafeBytes
2019-02-08 08:22:23 +01:00
Gwendal Roué
b6f79f176c
SE-0206 : Hashable Enhancements
2019-02-07 08:21:48 +01:00
Gwendal Roué
e5cd3a8994
SE-0206
2018-08-30 16:34:30 +02:00
Gwendal Roué
1bf7f67008
Update inline documentation with singular table names
2018-05-01 20:32:18 +02:00
Gwendal Roué
5747d1cff0
No more #if swift(>=4.1)
2018-04-30 08:26:23 +02:00
Gwendal Roué
090f872e80
Update documentation: don't mention dbQueue.inDatabase unless necessary
2018-04-15 18:09:34 +02:00
Gwendal Roué
1cbe60a13f
Better checks for Swift < 4.1 (thanks @hartbit!)
2018-03-12 18:33:06 +01:00
Gwendal Roué
a75e519294
SE-0185: let Swift 4.1 generate as much Equatable and Hashable conformance as possible
2018-03-12 18:20:10 +01:00
Gwendal Roué
85d3c584ef
Swift 4.1 compatibility (SE-0184 , SE-0187)
2018-03-12 18:20:10 +01:00
Gwendal Roué
2289ed9d95
Cleanup Jazzy documentation from most redundant definitions and experimental APIs
2018-01-21 16:57:43 +01:00
Gwendal Roué
8ccc23333d
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
2017-08-23 08:16:30 +02:00