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
Gwendal Roué
59162d93de
Rename Database.execute(_:String) to Database.execute(rawSQL:String)
2019-02-17 13:27:54 +01:00
Gwendal Roué
53adad16e5
Tests for Database.reindex(collation:)
2018-11-17 18:56:38 +01:00
Gwendal Roué
822ff97050
Tests for TableDefinition.autoIncrementedPrimaryKey
2018-04-21 19:41:45 +02:00
Gwendal Roué
79ed15c38c
Deprecate Database.columnCount(in:) in favor of Database.columns(in:). Update doc and changelog
2018-02-22 14:00:19 +01:00
Gwendal Roué
4b173dece5
Test for t.add(column:) without any explicit column type
2017-11-29 20:17:26 +01:00
Gwendal Roué
5f2d6f8e2f
Table creation API enhancements
2017-07-01 16:44:33 +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é
a475cfa340
Tests organization
2017-04-23 16:37:59 +02:00