Gwendal Roué
b9d4a5215a
Remove deprecated DatabaseMigrator methods
2020-03-08 17:13:31 +01:00
Gwendal Roué
02890a6d3a
Remove deprecated SQLLiteral.mapSQL(_:)
2020-03-08 16:28:44 +01:00
Gwendal Roué
0f503fe0db
Remove deprecated FetchRequest.prepare(_: forSingleResult:)
2020-03-08 16:18:55 +01:00
Gwendal Roué
130e510f8c
Remove deprecated passphrase methods
2020-03-08 16:00:19 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
d7e821785d
Fix podfiles of CocoaPods tests
2020-03-08 12:35:59 +01:00
Gwendal Roué
4486f73432
Apply requirements to podspec and podfiles
2020-03-08 10:55:48 +01:00
Gwendal Roué
224e0b7d58
Apply requirements to Xcode projects
...
Update:
SWIFT_VERSION
IPHONEOS_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET
TVOS_DEPLOYMENT_TARGET
WATCHOS_DEPLOYMENT_TARGET
2020-03-08 10:55:26 +01:00
Gwendal Roué
9db86ff2d6
Apply Swift version requirement to Tests/SPM/PlainPackage
2020-03-08 10:45:40 +01:00
Gwendal Roué
e9dd8b2b09
Enhance DatabaseMigrator querying methods
...
// New
dbQueue.read(migrator.hasCompletedMigrations)
dbQueue.read(migrator.completedMigrations).contains("v2")
dbQueue.read(migrator.completedMigrations).last == "v2"
dbQueue.read(migrator.appliedMigrations)
// Deprecated
migrator.hasCompletedMigrations(in: dbQueue)
migrator.hasCompletedMigrations(in: dbQueue, through: "v2")
migrator.lastCompletedMigration(in: dbQueue) == "v2"
migrator.appliedMigrations(in: dbQueue)
2020-03-07 13:59:46 +01:00
Gwendal Roué
ee64f8ff9d
Rename statement argument methods
2020-03-04 08:43:31 +01:00
Gwendal Roué
7c684d06c1
Simplify schema cache management
...
We don't need EmptyDatabaseSchemaCache. It does not help unsafe reads to work better if concurrent writes modify the schema anyway.
2020-03-01 15:51:37 +01:00
Gwendal Roué
f5019eeb60
Merge branch 'development' into dev/barrierMigrations
...
# Conflicts:
# GRDB/Migration/DatabaseMigrator.swift
2020-03-01 09:13:45 +01:00
Gwendal Roué
ce0df653f4
Expose Database.erase()
2020-02-29 17:19:08 +01:00
Gwendal Roué
7af846c87f
Rename new DatabaseMigrator methods
2020-02-29 15:07:36 +01:00
Gwendal Roué
9f46f34d16
Merge branch 'development' into dev/unappliedMigrations
...
# Conflicts:
# CHANGELOG.md
2020-02-29 14:46:50 +01:00
Gwendal Roué
e62df26a53
Disable flaky testDatabasePoolReleaseMemoryClosesReaderConnections
...
See https://github.com/groue/GRDB.swift/issues/489
2020-02-29 14:45:06 +01:00
Gwendal Roué
b71de1559a
Disable flaky testCachedStatementsAreNotShared
...
See https://github.com/groue/GRDB.swift/issues/679
2020-02-29 14:43:17 +01:00
Gwendal Roué
c2c587752c
Disable flaky testBusyModeTimeoutTooShort
...
It just ruins Travis builds :-(
2020-02-29 14:41:46 +01:00
Gwendal Roué
a7d02b90a5
Update license year
2020-02-29 14:09:29 +01:00
Gwendal Roué
d35d6fc2f8
Rename isMigrated(in:upTo:) to isMigrated(in:beyond:), introduce lastAppliedMigration(in:)
2020-02-28 14:27:52 +01:00
Gwendal Roué
91a3557281
Rename hasUnappliedMigrations to isMigrated
2020-02-28 07:40:19 +01:00
Gwendal Roué
92e8ef9b87
More DatabaseMigrator tests
2020-02-27 21:01:56 +01:00
Gwendal Roué
692af926be
Tests for DatabaseMigrator.hasUnappliedMigrations
2020-02-27 20:51:44 +01:00
Gwendal Roué
efcc3a3dfb
Merge branch 'development' into dev/migration
...
# Conflicts:
# CHANGELOG.md
2020-02-26 19:31:38 +01:00
Gwendal Roué
4f9878a1da
Update tests for the deprecated registerMigrationWithDeferredForeignKeyCheck method
2020-02-26 13:57:49 +01:00
Gwendal Roué
9400e7f5d5
Fix tests for Xcode 10.3
2020-02-26 08:17:48 +01:00
Gwendal Roué
bad8d85729
Add test for legacy literal expression function
2020-02-25 22:18:16 +01:00
Gwendal Roué
cc495e3fd5
Failing test for literal expression function
2020-02-25 22:11:18 +01:00
Gwendal Roué
cdda2852d3
Merge branch 'development' into dev/qualifiedSQLLiteral
2020-02-14 11:43:15 +01:00
Gwendal Roué
d448bd8bd5
Test SQLLiteral.mapSQL qualification
2020-01-25 14:32:13 +01:00
Gwendal Roué
e999ab5ecb
Don't deprecate SQLLiteral.mapSQL, after all
2020-01-25 13:46:00 +01:00
Gwendal Roué
db8585aa85
Test for SQLLiteral(expression)
2020-01-25 12:34:22 +01:00
Gwendal Roué
e2545b3427
Test for more complex SQLLiteral generation
2020-01-25 12:15:14 +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é
b8c5af5cef
Fix availability test
2020-01-24 09:03:06 +01:00
Gwendal Roué
2d3a9991d4
Test documented use case
2020-01-24 08:55:55 +01:00
Gwendal Roué
86e32cdc23
Cleanup SQLGenerationContext
2020-01-24 08:55:55 +01:00
Gwendal Roué
554cbaa307
Stop using SQLExpression.sqlLiteral
2020-01-24 08:55:55 +01:00
Gwendal Roué
6a0cc838da
Deprecate SQLLiteral.mapSQL and SQLExpression.sqlLiteral
2020-01-24 08:55:55 +01:00
Gwendal Roué
4811bc3c5b
Test SQLLiteral qualification
2020-01-24 08:55:55 +01:00
Gwendal Roué
95ddae7968
More tests for associative operators
2020-01-16 09:08:30 +01:00
Gwendal Roué
c9373929ca
Documentation for the || string concatenation operator
2020-01-16 08:50:40 +01:00
Gwendal Roué
a398c6dc99
Flattten stricly associative operators
2020-01-16 08:17:11 +01:00
Gwendal Roué
58a36ec509
Add including(all:) test fixed by ebdfa9e52a
2020-01-11 19:00:57 +01:00
Gwendal Roué
c14739cb4a
Failiing tests for children relations
2020-01-11 18:11:05 +01:00