Gwendal Roué
f878d99733
Use SQLITE_HAS_CODEC instead of GRDBCIPHER when testing for SQLCipher availability
...
GRDBCIPHER is now just a marker for importing SQLCipher with CocoaPods.
Also, enable all APIs that used to be disabled with SQLCipher, and skip tests that require a specific SQLite version.
2025-10-12 14:49:59 +02:00
Gwendal Roué
32c9ba24ba
Replace sqlite3_libversion_number() with Database.sqliteLibVersionNumber
...
and remove SQLite imports that are no longer necessary.
2025-02-01 12:19:11 +01:00
Gwendal Roué
e4a4735494
[BREAKING] tvOS 13+
2024-09-21 13:57:35 +02:00
Gwendal Roué
8c40592955
[BREAKING] iOS 13+
2024-09-21 13:57:23 +02:00
Gwendal Roué
e72a37d7d5
Rename LockedBox to Mutex
2024-08-25 12:40:28 +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é
79cb862478
[BREAKING] watchOS 7+
...
Rationale: https://github.com/groue/GRDB.swift/issues/1472#issuecomment-1960696836
2024-08-24 15:45:38 +02:00
Gwendal Roué
718102f743
Create indexes on expressions
2023-10-02 07:49:59 +02:00
Gwendal Roué
349253e196
Failing tests for ForeignKeyDefinition
2023-07-09 17:16:08 +02:00
Gwendal Roué
bebb751b3c
Create and drop view
2023-07-09 17:13:22 +02:00
Gwendal Roué
c02139c045
Default name for newly created indexes
2023-05-25 09:03:09 +02:00
Gwendal Roué
4ff057ac3b
Deprecate table constraints built from SQLExpressible - prefer SQLSpecificExpressible instead
...
Fixes #1371
2023-05-15 12:45:33 +02:00
Gwendal Roué
d3c289a320
Availability checks cleanup
2023-01-22 12:37:40 +01:00
Gwendal Roué
05da03ab1a
Expose generated columns with availability checks
2022-12-10 11:32:23 +01:00
Gwendal Roué
7bd1992e61
Fix ergonomics issue with the definition of compound primary key
...
If the user would forget the PrimaryKeyDefinition, the primary was not defined:
try db.create(table: "membership") { t in
// WRONG: pk is unused
t.primaryKey { pk in
t.column("playerId", .integer)
t.column("teamId", .text)
}
}
The fix is to remove the PrimaryKeyDefinition:
try db.create(table: "membership") { t in
t.primaryKey {
t.column("playerId", .integer)
t.column("teamId", .text)
}
}
2022-11-27 14:09:25 +01:00
Gwendal Roué
cd16e921fe
Tests for primary key definition with NOT NULL constraint by default
2022-11-27 11:47:56 +01:00
Gwendal Roué
901d010ab3
Restore the test that strict tables won't accept ill-typed values.
2022-10-20 08:46:49 +02:00
Gwendal Roué
3c4ff5b26e
Single test for strict tables
...
Also, skip the test for old SQLCipher version.
2022-10-20 08:46:49 +02:00
Josip Cavar
c57e76be52
Add support for .strict table option in 3.37+
2022-10-19 15:55:46 +02:00
Gwendal Roué
980f5247f0
Failing test for #1267
2022-08-25 08:12:32 +02:00
Gwendal Roué
06dbaba7cc
Add failing test for schema cache invalidation
2022-01-18 08:50:42 +01:00
Timothy Ellis
daf44d9baa
Exposed drop(column:) to custom builds and cipher
2022-01-18 10:11:12 +11:00
Timothy Ellis
55302cb937
Added test for drop column
2022-01-17 10:02:23 +11:00
Gwendal Roué
68f3e5586b
Test strict tables, and table/index creation options
2022-01-09 17:01:37 +01:00
Gwendal Roué
95f1d83d78
The .strict table creation option
...
The .strict table creation option
The .strict table creation option
2022-01-09 17:01:37 +01:00
Gwendal Roué
339fbdf1ce
Literal column alteration
2021-03-17 21:54:56 +01:00
Gwendal Roué
085c8f5953
Literal table and constraint definition
2021-03-17 20:26:49 +01:00
Gwendal Roué
b8dd2ce2f4
Generate columns from query interface expressions
...
This allows to avoid SQL injection
2020-10-31 14:16:04 +01:00
Gwendal Roué
57036c4470
Use SQLite ergonomics, and create virtual generated columns by default
2020-10-31 13:55:07 +01:00
Gwendal Roué
dfc22bdf00
Skip tests for generated columns unless custom SQLite build
2020-10-31 12:14:52 +01:00
Michael Allman
1f87d5a375
Add rudimentary tests for the generated column table definition API
2020-10-25 12:19:01 -07:00
Gwendal Roué
bf1c025612
Failing test for #838
2020-09-19 13:11:30 +02:00
Gwendal Roué
8e2fb1fb22
Update tests
2020-09-06 13:57:16 +02:00
Gwendal Roué
9b24c8213e
Skip unavailable tests
2020-06-25 22:16:51 +02:00
Gwendal Roué
289394c7ac
Turn LockedBox and ReadWriteBox into property wrappers.
...
Also fix an old concurrency bug in tests, regarding query recording
2020-05-30 13:52:39 +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é
7865b0a2ee
SE-0249: Key Path Expressions as Functions
2020-03-08 19:58:51 +01:00
Gwendal Roué
00b0dc2a04
Remove availability checks for macOS 10.10 (forgotten in #719 )
2020-03-08 19:08:15 +01:00
gjeck
38a161f92b
Fix imports for SPM tests
2020-01-24 10:53:34 -08:00
gjeck
d14ac3e8d3
Resolve test issues with SQLCipher
...
Note: SQLCipher3 will have the new column rename method exposed, but it
will throw an error at runtime if used.
2020-01-24 09:22:43 -08:00
gjeck
09087bdbf9
Adjust available checks
2020-01-24 08:46:55 -08:00
gjeck
538252a4bf
Allow column rename on custom sqlite target
2020-01-24 08:46:55 -08:00
gjeck
371e8f0dbe
Add support for renaming columns within a table
...
SQLite introduced enhancements to the `ALTER TABLE` command in 3.25.0.
iOS 13.0+, macOS 10.15+, tvOS 13.0+, and watchOS 6.0+ have a SQLite
library bundled higher than 3.25.0.
For more information see https://www.sqlite.org/lang_altertable.html
2020-01-24 08:46:55 -08:00
Gwendal Roué
ab000d7a4f
Remove useless expression parenthesis from SQL
2019-05-26 20:08:13 +02:00
Gwendal Roué
1c1ee4e92a
GRDBCipher is no longer. Long live GRDB.swift/SQLCipher.
2019-04-19 13:11:55 +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é
a57aa2e346
rawSQL migration complete
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