Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
800b9ffc3d
Name the temporary database used by DatabaseMigrator.eraseDatabaseOnSchemaChange
2020-06-03 20:09:22 +02:00
Gwendal Roué
cff769ddd5
Documentation
2020-05-11 08:54:31 +02:00
Gwendal Roué
3fea5db763
DatabaseMigrator.hasBeenSuperseded(_:)
2020-05-11 08:27:41 +02:00
Gwendal Roué
eee2c65c14
Merge branch 'development' into GRDB5
...
# Conflicts:
# CHANGELOG.md
# README.md
2020-03-29 18:55:06 +02:00
Gwendal Roué
97a84c6470
Fix failing test for #741
2020-03-29 12:09:58 +02:00
Gwendal Roué
dab8e28f6d
Merge branch 'master' into GRDB5
...
# Conflicts:
# GRDB/Migration/DatabaseMigrator.swift
# GRDB/QueryInterface/Request/QueryInterfaceRequest.swift
# README.md
2020-03-21 14:35:57 +01:00
Gwendal Roué
c1d1797576
Address #725
2020-03-18 20:36:56 +01:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
7865b0a2ee
SE-0249: Key Path Expressions as Functions
2020-03-08 19:58:51 +01:00
Gwendal Roué
b9d4a5215a
Remove deprecated DatabaseMigrator methods
2020-03-08 17:13:31 +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é
f5019eeb60
Merge branch 'development' into dev/barrierMigrations
...
# Conflicts:
# GRDB/Migration/DatabaseMigrator.swift
2020-03-01 09:13:45 +01:00
Gwendal Roué
0e43f1b95a
appliedIdentifiers always filters out unknown migrations
2020-03-01 08:58:50 +01:00
Gwendal Roué
e1b14d4ee5
DatabaseMigrator uses barrierWriteWithoutTransaction
...
This prevents concurrent reads from reading right in between two migration transactions
2020-02-29 17:26:59 +01:00
Gwendal Roué
7af846c87f
Rename new DatabaseMigrator methods
2020-02-29 15:07:36 +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é
a17669b082
DatabaseMigrator.hasUnappliedMigrations
2020-02-27 20:50:25 +01:00
Gwendal Roué
98c4356638
Cleanup
2020-02-26 14:07:38 +01:00
Gwendal Roué
8557d113a3
Deprecate registerMigrationWithDeferredForeignKeyCheck
...
This method is now equivalent to registerMigration, starting SQLite 3.7.16
2020-02-26 13:57:14 +01:00
Michael Kirk
cd6d46e349
move fix to private
2019-11-18 11:33:35 -07:00
Michael Kirk
9ea160b116
Fix: appliedMigrations throws error on new install
...
Before setup, the grdb_migrations table doesn't exist, so calling
`appliedMigrations` would throw an error.
To avoid this, if the table to track migrations doesn't exist yet, we can be
sure no migrations have been run, and we retun the empty set.
FIXES https://github.com/groue/GRDB.swift/issues/652
2019-11-18 09:09:46 -07:00
Gwendal Roué
725e16390b
Fix failing test for eraseDatabaseOnSchemaChange
2019-09-17 08:22:36 +02:00
Gwendal Roué
62e50b1a73
Simplify eraseDatabaseOnSchemaChange implementation
2019-09-17 08:10:28 +02:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +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é
a230fe400d
Availability checks: assume iOS >= 9.0
2019-02-07 08:52:38 +01:00
Gwendal Roué
3593806685
Cleanup
2018-07-07 14:49:43 +02:00
Gwendal Roué
fee4486d1b
DatabaseMigrator.eraseDatabaseOnSchemaChange
2018-07-07 14:23:50 +02:00
Gwendal Roué
1bf7f67008
Update inline documentation with singular table names
2018-05-01 20:32:18 +02:00
Gwendal Roué
b8fc762e11
Cleanup
2018-04-21 19:28:58 +02:00
Gwendal Roué
bd2f17ee10
Fixes needed by DatabasePool/Writer.writeWithoutTransaction
2018-04-12 07:58:01 +02:00
Gwendal Roué
c7ad3ef4a9
DatabaseMigrator.appliedMigrations(in:) doc & changelog
2018-03-15 20:15:23 +01:00
Gwendal Roué
fa8ed89eae
DatabaseMigrator.appliedMigrations(_:)
2018-03-15 20:10:59 +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
Gwendal Roué
823b094b60
SE-0168
2017-08-18 14:22:14 +02:00
Gwendal Roué
0c192fcb57
DatabaseMigrator.migrate(_:upTo:)
2017-06-20 07:54:19 +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é
dae4ae1c6b
Reduce internal coupling
2017-04-22 11:12:43 +02:00