Gwendal Roué
e037972dbb
Remove dead code
2016-07-22 13:38:31 +02:00
Gwendal Roué
034a24dfe3
_SQLExpression.sql(_:_:) turns all values into safely escaped SQL literals when given nil arguments. (addresses #83 )
2016-07-22 12:56:26 +02:00
Gwendal Roué
111d11a71b
DatabaseValueConvertible.sqlLiteral returns a safely escaped SQL literal (addresses #83 )
2016-07-22 08:49:35 +02:00
Gwendal Roué
fcf90a053a
Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public
2016-07-21 19:08:27 +02:00
Gwendal Roué
0677a8a21a
The query interface order method replaces any previously applied ordering (see #85 )
2016-07-19 08:53:43 +02:00
Gwendal Roué
34ff64b103
Rename DatabaseScheduler to SchedulingWatchdog
2016-07-08 18:22:34 +02:00
Gwendal Roué
88e8c2ba33
#80 cleanup
2016-07-08 16:10:38 +02:00
Gwendal Roué
e664ab18ee
Fixes #80
2016-07-08 14:30:45 +02:00
Gwendal Roué
358c3ab0c3
Row adapters: rename "variants" to "scopes"
2016-07-08 08:44:41 +02:00
Gwendal Roué
d35b65c9d2
#56 : cleanup
...
- Dabase.indexes(tableName) returns actual indexes (no more fake index on INTEGER PRIMARY KEY column)
- Database.colums(_:uniquelyIdentifyRowsIn:) checks indexes, and primary key
- DatabaseSchemaCache caches table indexes (with invalidation on CREATE/DROP INDEX statements)
2016-07-06 19:09:25 +02:00
Gwendal Roué
0f27299586
#56 : fetchOne(_:key:Dictionary) and deleteOne(_:key:Dictionary) raise a fatal error when there is no unique index on the key columns.
2016-07-06 08:39:18 +02:00
Gwendal Roué
baff716ef6
#56 : fetchOne(_:key:Dictionary) performs the same unique index check as deleteOne()
2016-07-06 08:18:14 +02:00
Gwendal Roué
1141676223
#56 : Database.indexes(tableName) includes the implicit unique index on INTEGER PRIMARY KEY column.
2016-07-05 22:33:56 +02:00
Gwendal Roué
a6ce80d39b
#56 : TableMapping.deleteOne(_🔑 ), TableMapping.deleteAll(_:keys:)
2016-07-05 22:16:23 +02:00
Gwendal Roué
16a3b88db5
Document how to encrypt an existing database (should help #77 )
2016-07-05 14:37:28 +02:00
Gwendal Roué
aaf184ddb3
Tests for StatementColumnConvertible fetching methods with adapter
2016-06-28 14:46:26 +02:00
Gwendal Roué
21e9e64b3d
DatabaseValueConvertible and StatementColumnConvertible can now be fetched through a RowAdapter. DatabaseValueConvertible: raise a fatal error instead of converting to nil for invalid conversions triggered by fetch() methods.
2016-06-28 13:54:45 +02:00
Gwendal Roué
cae3d7b321
Support for NSUUID
2016-06-20 22:37:31 +02:00
Gwendal Roué
e0ea5af18e
Refactor database events filtering
2016-06-20 20:38:31 +02:00
Gwendal Roué
6a466fcb12
Detailed database changes observation
2016-06-20 15:21:14 +02:00
Gwendal Roué
9a397c1ff8
Emoji tests
2016-06-19 11:14:11 +02:00
Gwendal Roué
219899fc9b
Query Interface arguments to SQL snippets
2016-06-18 14:49:17 +02:00
Gwendal Roué
a7ac615bb2
Merge branch 'master' into RowAdapter2
2016-06-09 07:33:42 +02:00
Gwendal Roué
a8df726bff
NSDecimalNumber.databaseValue only returns a double when the decimal number does not contain an integer that fits in Int64.
2016-06-08 23:14:49 +02:00
Gwendal Roué
a882a5f346
RowAdapter documentation
2016-06-08 20:54:25 +02:00
Gwendal Roué
390cf44a88
RowAdapter documentation
2016-06-08 09:00:22 +02:00
Gwendal Roué
3e71253ffb
RowAdapter documentation
2016-06-08 08:17:37 +02:00
Gwendal Roué
7a13b9c4b7
More RowAdapter tests
2016-06-08 06:20:27 +02:00
Gwendal Roué
15f9aabaf0
SuffixRowAdapter
2016-06-07 22:18:13 +02:00
Gwendal Roué
c617a8f354
RowAdapter refactoring
2016-06-07 21:44:32 +02:00
Gwendal Roué
f92d433a3e
Test for FetchedRecordsController.trackChanges(fetchAlongside:)
2016-06-05 15:35:05 +02:00
Gwendal Roué
7186c9a3a0
#68 : take care of Int, Int32 and Int64 overflow when converting from database values
2016-06-05 13:49:47 +02:00
Gwendal Roué
a5760a7462
#68 : NSNumber.databaseValue raises explicit fatal error when value doesn’t fit Int64
2016-06-05 12:16:37 +02:00
swiftlyfalling
7e1eb5a970
Increase test coverage of DatabaseQueue
2016-06-03 08:36:25 -04:00
swiftlyfalling
f231218a69
Increase test coverage of DatabaseValue.swift
2016-06-03 08:35:56 -04:00
swiftlyfalling
e21c9cb8f0
Revert "Increase test coverage of DatabaseValue.swift"
...
This reverts commit 58084c6a65 .
2016-06-03 08:35:04 -04:00
swiftlyfalling
8597808a61
Revert "Increase test coverage of DatabaseQueue"
...
This reverts commit 5ffac12f5b .
2016-06-03 08:34:41 -04:00
swiftlyfalling
066a4de15f
Added tests
...
For:
- NSNull.swift
- NSNumber.swift
- NSString.swift
- NSURL.swift
- DatabaseValue+Foundation.swift
2016-06-02 19:25:42 -04:00
swiftlyfalling
5ffac12f5b
Increase test coverage of DatabaseQueue
2016-06-02 18:20:08 -04:00
swiftlyfalling
b24631345b
Increase test coverage of NSData.swift
2016-06-02 18:08:28 -04:00
swiftlyfalling
ab3332ed8f
Add test of removeTransactionObserver()
2016-06-02 18:07:42 -04:00
swiftlyfalling
58084c6a65
Increase test coverage of DatabaseValue.swift
2016-06-02 18:06:35 -04:00
swiftlyfalling
6664733650
Increase test coverage of FetchRequest.swift
...
Existing DatabaseValueConvertible tests were only testing the
`extension DatabaseValueConvertible where Self:
StatementColumnConvertible` cases.
Added tests to explicitly cover the cases where something conforms to
`DatabaseValueConvertible` but *not* `StatementColumnConvertible`, and
renamed the old tests.
2016-06-02 18:05:31 -04:00
swiftlyfalling
f7a537ab91
Increase test coverage of DatabaseCoder.swift
...
Test failure cases.
2016-06-02 18:02:08 -04:00
swiftlyfalling
0506d47a4f
Increase test coverage of DatabaseDateComponents.swift
...
Test init from nil NSDateComponents case.
2016-06-02 18:01:31 -04:00
swiftlyfalling
e06bcab62b
Increase test coverage of Row+Foundation.swift
...
Add missing test to verify initialization failure if NSDictionary has
invalid (non-String) keys.
2016-06-02 18:01:13 -04:00
swiftlyfalling
90061a4b25
Increase test coverage of StatementArguments+Foundation.swift
...
Test initializing failure from invalid NSArray, NSDictionary.
2016-06-02 17:59:47 -04:00
Gwendal Roué
5a17fa53cd
More TODO
2016-06-02 20:48:57 +02:00
swiftlyfalling
901b7a0f12
Add support for SQLite Pre-Update Hooks (+ tests)
...
If SQLITE_ENABLE_PREUPDATE_HOOK is defined, and GRDB is built with a
custom SQLite library with the functionality (see: GRDBCustomSQLite),
enable support for SQLite Pre-Update Hooks and the new
`willChangeWithEvent` callback on TransactionObservers.
2016-06-01 20:42:21 -04:00
swiftlyfalling
5cb4044408
Merge remote-tracking branch 'groue/master' into Custom-SQLite
2016-05-31 17:33:59 -04:00