Gwendal Roué
b16656bd23
Partial update WIP: cache & column case insensitivity
2016-07-28 19:28:46 +02:00
Gwendal Roué
df7791a3e7
Partial update WIP: documentation
2016-07-28 09:05:46 +02:00
Gwendal Roué
176a23fe97
Partial update WIP: tests
2016-07-28 08:53:17 +02:00
Gwendal Roué
548ff068fd
Partial update WIP: implementation
2016-07-28 08:41:22 +02:00
Gwendal Roué
50ce433bcb
Partial update WIP: public API
2016-07-28 08:25:08 +02:00
Gwendal Roué
fcf90a053a
Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public
2016-07-21 19:08:27 +02:00
Gwendal Roué
8b09b2cdba
Improve error messages for MutablePersistable.update(), delete() & exist() (see #81 )
2016-07-20 13:49:16 +02:00
Gwendal Roué
e5bf8a8e75
Fix GRDBiOS
2016-07-06 21:09:24 +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é
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é
8992b4a284
Move FetchRequest to Core
2016-06-28 09:09:06 +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é
c9ebb6da00
FetchedRecordsController:
...
- make unowned references in the callbacks safe, as long as the unowned object is deallocated in the fetched records controller’s queue (usually the main queue).
- FetchedRecordsController.trackChanges(fetchAlong: { db in … }, …) allows the user to fetch values that are consistent with the fetched records.
2016-06-04 18:24:49 +02:00
Gwendal Roué
bf0f9e1fa2
Merge pull request #63 from swiftlyfalling/preupdate-hooks
...
Add support for SQLite Pre-Update Hooks (+ tests)
2016-06-02 13:29:26 +02:00
swiftlyfalling
f15a4df79e
Slow compilation fixes
...
Implemented a workaround for the cause of the two slowest-to-compile
methods.
2016-06-01 21:12:33 -04: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
Gwendal Roué
7206e46377
Relax FetchedRecordsController compareRecordsByPrimaryKey initializer argument by only requiring TableMapping protocol
2016-05-29 15:28:50 +02:00
Gwendal Roué
554b9a03b5
FetchedRecordsController: avoid instantiate records when building table view updates
2016-05-29 15:20:17 +02:00
Gwendal Roué
bc512e775c
Issue #60 : make PrimaryKey public
2016-05-25 08:41:54 +02:00
Gwendal Roué
6e259f9a0e
Rename SQLRequest to SQLFetchRequest
2016-05-22 20:21:30 +02:00
Gwendal Roué
1ee4437970
Fix Row.fetch(db, request) and RowConvertible.fetch(db, request) by using the request’s adapter.
2016-05-22 19:55:57 +02:00
Gwendal Roué
2f18d1ff8b
Merge branch 'master' into RowAdapter
...
Conflicts:
GRDB/Record/FetchedRecordsController.swift
2016-05-21 16:03:45 +02:00
Gwendal Roué
6c816bfdeb
Minor
2016-05-21 16:01:22 +02:00
Gwendal Roué
afa8cfce5e
Minor
2016-05-21 15:43:27 +02:00
Gwendal Roué
9794b72607
Fixes #55
2016-05-21 15:08:16 +02:00
Gwendal Roué
997a29e70b
Fixes #58
2016-05-21 12:15:36 +02:00
Gwendal Roué
d8b935369b
RowAdapter refactoring
2016-05-20 21:57:39 +02:00
Gwendal Roué
4e2f396b4a
RowAdapter refactoring
2016-05-20 21:00:50 +02:00
Gwendal Roué
daba5b2102
Merge branch 'master' into RowAdapter
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Record/FetchedRecordsController.swift
TODO.md
2016-05-19 20:40:26 +02:00
Gwendal Roué
5fac4abc07
Use FetchRequest instead of QueryInterfaceRequest where relevant
2016-05-19 13:35:45 +02:00
Gwendal Roué
5b57707b86
Rename FetchRequest to QueryInterfaceRequest
2016-05-19 13:08:36 +02:00
Gwendal Roué
fca37601dd
Issue #50 : Tests for RowConvertible.fetch(…:adapter:)
2016-05-19 06:37:56 +02:00
Gwendal Roué
55301efa3e
Issue #50 : FetchedRecordsController(…:adapter:)
2016-05-19 06:03:22 +02:00
Gwendal Roué
82052848ee
Issue #50 : RowConvertible.fetch(…:adapter:)
2016-05-19 05:55:42 +02:00
Gwendal Roué
f553f2d2b0
Remove Row subscripting by column name; row.databaseValue(named:) returns an optional DatabaseValue
2016-05-18 19:03:29 +02:00
Gwendal Roué
c1169f0d2c
Issue #51 : Restore statement caching, now that the database is closed in the correct queue.
2016-05-17 20:08:55 +02:00
Gwendal Roué
82fa559962
Issue #51 : sqlite3_close_v2() is not available until iOS 8.2 and OS X 10.10. Until then, use sqlite3_close(), and avoid caching statements. Disable the concurrency tests that check database deallocation while some statements are running.
2016-05-17 13:39:29 +02:00
Gwendal Roué
494682c2af
FetchedRecordsController iOS fixes
2016-05-12 08:15:24 +02:00
Gwendal Roué
d48d0e621f
FetchedRecordsController documentation
2016-05-12 07:59:38 +02:00
Gwendal Roué
5c065d3f8a
FetchedRecordsController documentation
2016-05-12 07:54:57 +02:00
Gwendal Roué
b13fc99797
FetchedRecordsController: hide all UITableView-related methods from OSX
2016-05-11 23:24:30 +02:00
Gwendal Roué
1f30f8dcf3
FetchedRecordsController: hide all UITableView-related methods from OSX
2016-05-11 19:35:45 +02:00
Gwendal Roué
1d5999e50b
FetchedRecordsController: expose UITableView-targetted callbacks to iOS only
2016-05-11 10:36:51 +02:00
Gwendal Roué
050f432c10
FetchedRecordsController: callbacks must be set all at once. Restore optional tracking.
2016-05-11 08:32:11 +02:00
Gwendal Roué
1201f4e008
FetchedRecordsController: replace delegate with callbacks
2016-05-10 14:16:13 +02:00