Gwendal Roué
323d828eb7
Fix the test project for Carthage installation of GRDB on iOS
2017-03-26 15:37:46 +02:00
Gwendal Roué
bb763f7315
Remove the test project for the no longer supported installation of GRDBCipher via Carthage
2017-03-26 15:37:39 +02:00
Gwendal Roué
b1d93112da
Embed a copy of sqlite3.h in order to work around my inability at importing <sqlite3.h> from all targeted SDKs (addresses #166 , #170 )
2017-03-26 15:37:31 +02:00
Gwendal Roué
56bd3513a3
Fix FTS3 pattern test so that it compiles when support for FTS5 is available
2017-03-26 15:14:18 +02:00
Gwendal Roué
ba4ee3f1fc
Bugfix
2017-03-26 15:09:05 +02:00
Gwendal Roué
e2e2c58d9f
Add availability checks for FTS3Pattern(matchingAnyTokenIn:), FTS3Pattern(matchingAllTokensIn:), FTS3Pattern(matchingPhrase:)
2017-03-26 14:51:11 +02:00
Gwendal Roué
7a90b9ce23
Add availability checks for FTS3 unicode61 tokenizer, FTS4 unindexed columns, and partial indexes.
2017-03-26 14:41:15 +02:00
Gwendal Roué
b159c30cf1
SQLITE_CONSTRAINT_FOREIGNKEY was added in SQLite 3.7.16 (iOS 8.2+ and OS X 10.10+)
2017-03-26 13:17:59 +02:00
Gwendal Roué
5c7712bf6c
PRAGMA query_only was added in SQLite 3.8.0 (iOS 8.2+ and OS X 10.10+)
2017-03-26 13:17:25 +02:00
Gwendal Roué
8d4522227c
Replace all assertNoError and try! with throwing tests
2017-03-25 16:31:54 +01:00
Gwendal Roué
eee39a7c0b
Improve unexpected error reporting
2017-03-25 14:15:04 +01:00
Gwendal Roué
bd58c18bb0
Simplify cursor step failure steps
2017-03-25 14:14:42 +01:00
Gwendal Roué
4e82a482d1
DatabaseCursor: test preservation of custom error codes
2017-03-25 14:12:47 +01:00
Gwendal Roué
f2bb8bb8af
Remove DatabaseValue.value()
2017-03-24 20:05:02 +01:00
Gwendal Roué
88f206e7f5
New DatabaseReader.read() guarantee: database modifications are prevented
2017-03-24 09:18:24 +01:00
Gwendal Roué
10d0d162b5
Performance tests against Realm 2.4.3, SQLite.swift 0.11.2
2017-03-09 17:25:35 +01:00
Gwendal Roué
7a10486492
DatabaseError conversion to NSError preserves extended result code
2017-03-03 08:14:36 +01:00
Gwendal Roué
842831d729
Merge branch 'master' into RequestFetchCount
2017-03-02 13:01:13 +01:00
Gwendal Roué
2729892676
Merge branch 'master' into Issue171
2017-03-02 12:58:42 +01:00
Gwendal Roué
50318354a6
Merge branch 'master' into RequestFetchCount
2017-03-02 12:56:57 +01:00
Gwendal Roué
77593c8031
Fix RequestTests.swift so that it tests the Request protocol, not the concrete type that adopts it.
2017-03-02 10:54:27 +01:00
Gwendal Roué
deebf289de
Rename DatabaseMigrator.registerMigrationWithDisabledForeignKeyChecks to registerMigrationWithDeferredForeignKeyCheck
2017-03-02 08:29:45 +01:00
Gwendal Roué
846604cce5
Merge branch 'master' into Issue171
2017-03-01 14:12:31 +01:00
Gwendal Roué
b1ea970f62
#171 : ResultCode tests
2017-03-01 13:57:51 +01:00
Gwendal Roué
fc18b15106
#171 : Apply @hartbit's suggestion of having two DatabaseError properties: resultCode and extendedResultCode
2017-03-01 09:05:06 +01:00
Gwendal Roué
8a4686984a
Tests for Request.fetchCount() ( https://github.com/groue/GRDB.swift/issues/176#issuecomment-282783884 )
2017-03-01 08:06:54 +01:00
Gwendal Roué
e4a346995b
#171 : rename ResultCode.code into ResultCode.resultCode (@hartbit's suggestion)
2017-02-26 17:24:44 +01:00
Gwendal Roué
f0d1f2387d
#171 : always use extended result codes
2017-02-26 15:49:14 +01:00
Gwendal Roué
7eb592df79
#171 : introduce ResultCode
2017-02-26 15:36:21 +01:00
David Hart
ba50771007
add tests
2017-02-22 23:02:44 +01:00
Gwendal Roué
29e6082663
Fix registerMigrationWithDisabledForeignKeyChecks for legacy sqlite
2017-02-01 13:36:20 +01:00
Gwendal Roué
1e0e40912b
GRDBiOS tests on iOS8.1
2017-02-01 13:28:08 +01:00
Gwendal Roué
4dfd672c04
Compound unique keys: preserve index ordering in generated SQL queries
2017-01-22 16:51:02 +01:00
Gwendal Roué
4968100420
Expose DatabaseMigrator.registerMigrationWithDisabledForeignKeyChecks to GRDBCipher and GRDBCustomSQLite
2017-01-22 14:37:14 +01:00
Gwendal Roué
519d4470e3
Drop Configuration.fileAttributes
2017-01-20 08:22:46 +01:00
Gwendal Roué
de3d075ff2
Updated documentation for #160
2017-01-10 13:33:37 +01:00
Gwendal Roué
ca5fc1e8fc
Documentation
2017-01-06 08:43:16 +01:00
Gwendal Roué
14dca4667a
Simplify FetchedRecordsController callbacks API
2017-01-06 08:40:09 +01:00
Gwendal Roué
03740d0918
Remove FetchedRecordsController compareRecordsByPrimaryKey initializer option
2017-01-06 08:16:57 +01:00
Gwendal Roué
c83a16e22e
FetchedRecordsController initialisers use TypedRequest
2017-01-06 08:12:14 +01:00
Gwendal Roué
55ca0a80b6
Restore test that one can change the set of columns tracked by a fetched records controller
2017-01-04 06:43:17 +01:00
Kevin Wooten
f368af3d02
Support “TableViewEvent” on all all platforms
...
* TableViewEvent features of FetchedRecordsController supported on all platforms
* Renamed TableViewEvent to FetchedRecordsChangeEvent
* Renamed TableViewChange to FetchedRecordsChange
2016-12-30 00:30:23 -07:00
Gwendal Roué
0f34ee7d16
Revert "DatabaseError.code is now Database.ResultCode"
...
This reverts commit 968942f128 .
2016-12-29 13:32:29 +01:00
Gwendal Roué
968942f128
DatabaseError.code is now Database.ResultCode
2016-12-28 11:55:47 +01:00
Gwendal Roué
92d78515c4
Failing test for cached select statements that have failed
2016-12-21 18:53:55 +01:00
Gwendal Roué
341bedd7ca
Failing test for cached select statements that have failed
2016-12-21 18:46:01 +01:00
Gwendal Roué
c4e04d6e07
Tests for FetchedRecordsController error handling
2016-12-16 19:46:46 +01:00
Gwendal Roué
df15249f23
Tests for StatementArguments.append(contentsOf:) and operators +, &+, +=
2016-12-16 05:02:01 +01:00
Gwendal Roué
b737321cbd
Rows expressed as dictionary literals now preserve column ordering, and allow duplicated column names
2016-12-16 05:01:07 +01:00
Gwendal Roué
fc2689e207
Fix Pool.get when an error prevents a pool item from being created (counting semaphore wasn't signaled). This fixes DatabasePool.read when read connection can not be established. Tests.
2016-12-15 08:09:17 +01:00