Gwendal Roué
|
d85a74570d
|
DatabaseStore: expose initialization error (addresses https://github.com/groue/GRDB.swift/pull/148#issuecomment-263376526)
|
2016-11-29 08:20:36 +01:00 |
|
Gwendal Roué
|
bb1f8aab24
|
Drop Cursor.lazy
|
2016-11-29 06:35:09 +01:00 |
|
Gwendal Roué
|
ec2017ff72
|
Cursor.enumerated, filter, flatMap, map now return cursors. Cursor.lazy returns a lazy sequence. Introduce AnyCursor. Force Cursor types to be classes.
|
2016-11-28 20:34:53 +01:00 |
|
Gwendal Roué
|
5e2dc95331
|
DatabaseValueConvertible.fetchOne(): avoid double DatabaseValue conversion
|
2016-11-28 08:46:57 +01:00 |
|
Gwendal Roué
|
ee99abc266
|
Replace fetchCursor().next() with fetchOne()
|
2016-11-28 08:41:59 +01:00 |
|
Gwendal Roué
|
59506a97d6
|
Cleanup
|
2016-11-27 19:08:25 +01:00 |
|
Gwendal Roué
|
b85a8b8b0b
|
#147: DatabaseValueConvertible.fetchOne() can throw conversion errors
|
2016-11-27 18:21:04 +01:00 |
|
Gwendal Roué
|
f8029a6dc9
|
Remove a couple try!
|
2016-11-27 15:38:36 +01:00 |
|
Gwendal Roué
|
95eb9afeef
|
Cleanup
|
2016-11-27 15:37:03 +01:00 |
|
Gwendal Roué
|
87024f0426
|
QueryInterfaceSelectQueryDefinition.makeDeleteStatement() throws
|
2016-11-27 15:26:23 +01:00 |
|
Gwendal Roué
|
09697f2593
|
DAO.init() throws DatabaseError instead of crashing whenever table does not exist, or database can't be accessed
|
2016-11-27 15:23:00 +01:00 |
|
Gwendal Roué
|
e99e9f3e40
|
Migration.runWithDisabledForeignKeys(): throw error from PRAGMA foreign_keys = ON
|
2016-11-27 15:18:25 +01:00 |
|
Gwendal Roué
|
b8c05e551d
|
Cleanup
|
2016-11-27 15:14:38 +01:00 |
|
Gwendal Roué
|
829eb7d3a2
|
SelectStatement.SelectionInfo cleanup
|
2016-11-27 15:12:08 +01:00 |
|
Gwendal Roué
|
268080cbc5
|
#147: FetchedRecordsController.performFetch() can now throw database errors; remove work around for SR-2623
|
2016-11-27 08:19:43 +01:00 |
|
Gwendal Roué
|
8d9d0dd826
|
DatabasePool.nonIsolatedRead(_:) can now throw on macOS, too
|
2016-11-27 06:26:50 +01:00 |
|
Gwendal Roué
|
195c201f87
|
#147: DatabasePool.read(_:) and DatabasePool.nonIsolatedRead(_:) can now throw database errors.
|
2016-11-26 23:44:14 +01:00 |
|
Gwendal Roué
|
6121a9b48c
|
Remove dead code
|
2016-11-26 23:22:34 +01:00 |
|
Gwendal Roué
|
ac6c7f6a35
|
#147: fetchAll() and fetchOne() can now throw database errors.
|
2016-11-26 22:38:40 +01:00 |
|
Gwendal Roué
|
af6e31dcdf
|
#147: The fetch method have been removed, along with DatabaseSequence and DatabaseIterator.
|
2016-11-26 21:14:10 +01:00 |
|
Gwendal Roué
|
81504bba1e
|
#147: DatabaseCursor.flatMap()
|
2016-11-26 16:10:39 +01:00 |
|
Gwendal Roué
|
66bedf46a1
|
#147: DatabaseCursor.enumerated()
|
2016-11-26 15:19:40 +01:00 |
|
Gwendal Roué
|
a196ac03b1
|
#147: tests for DatabaseCursor.filter, forEach, map, reduce; dropped DatabaseCursor.enumerated since it can't be implemented yet
|
2016-11-26 14:39:09 +01:00 |
|
Gwendal Roué
|
ae1010166a
|
#147: record.exists(_:) can now throw a database error
|
2016-11-26 11:36:07 +01:00 |
|
Gwendal Roué
|
a548212f27
|
#147: tests for QueryInterfaceRequest.fetchCursor(_:) and (RowConvertible & TableMapping).fetchCursor(_:)
|
2016-11-26 11:20:35 +01:00 |
|
Gwendal Roué
|
1aeb6d0d9e
|
bugfix
|
2016-11-26 11:13:36 +01:00 |
|
Gwendal Roué
|
612c963105
|
TODO
|
2016-11-26 10:23:41 +01:00 |
|
Gwendal Roué
|
c80f0d317a
|
#147: Array(cursor) initialiser; base all fetchAll and fetchOne methods on fetchCursor.
|
2016-11-26 09:13:39 +01:00 |
|
Gwendal Roué
|
8215791051
|
cleanup
|
2016-11-26 08:37:53 +01:00 |
|
Gwendal Roué
|
ab62abed79
|
#147: use cursor
|
2016-11-26 08:29:51 +01:00 |
|
Gwendal Roué
|
b31356aada
|
#147: Database.tableExists(_:) and Database.indexes(on:) can now throw database errors
|
2016-11-26 08:28:32 +01:00 |
|
Gwendal Roué
|
b0db219aeb
|
#147: Rename DatabaseCursor.step() into next
|
2016-11-26 08:20:26 +01:00 |
|
Gwendal Roué
|
20a7c550fe
|
DatabaseCursor.enumerated, filter, forEach, map, reduce are public. Once DatabaseCursor.step() has returned nil, all subsequent calls return nil. (addresses #147)
|
2016-11-26 07:37:34 +01:00 |
|
Gwendal Roué
|
2eb190dbbb
|
Base DatabaseSequence on DatabaseCursor (addresses #147)
|
2016-11-26 00:56:37 +01:00 |
|
Gwendal Roué
|
d97360ef52
|
DatabaseCursor.enumerated, filter, forEach, map, reduce (addresses #147)
|
2016-11-25 19:12:36 +01:00 |
|
Gwendal Roué
|
fab64c61c4
|
Add DatabaseCursor to CHANGELOG, fix FTS5, and some TODO (addresses #147)
|
2016-11-25 18:43:41 +01:00 |
|
Gwendal Roué
|
b9fea2ea12
|
Introduce DatabaseCursor (addresses #147)
let cursor = try Row.fetchCursor(db, "SELECT * FROM persons)
while let row = try cursor.step() { ... }
|
2016-11-25 18:34:16 +01:00 |
|
Gwendal Roué
|
235fa57423
|
FetchedRecordsController cleanup
|
2016-11-23 12:48:28 +01:00 |
|
Gwendal Roué
|
90f0ebde1d
|
FetchedRecordsController cleanup
|
2016-11-23 09:26:09 +01:00 |
|
Gwendal Roué
|
e016725814
|
FetchedRecordsController cleanup
|
2016-11-23 08:54:02 +01:00 |
|
Gwendal Roué
|
3f449a40ad
|
FetchedRecordsController cleanup
|
2016-11-23 08:12:58 +01:00 |
|
Gwendal Roué
|
2cd8f56842
|
Documentation
|
2016-11-17 08:28:21 +01:00 |
|
Gwendal Roué
|
588b9737bf
|
Revert "Use sqlite3_trace_v2 when available (but the warning on sqlite3_trace remains)"
This reverts commit 049e9f1a55.
|
2016-11-15 18:38:46 +01:00 |
|
Gwendal Roué
|
049e9f1a55
|
Use sqlite3_trace_v2 when available (but the warning on sqlite3_trace remains)
|
2016-11-10 09:11:02 +01:00 |
|
Gwendal Roué
|
6200f5fb62
|
Fix Xcode 8.1 warning
|
2016-11-10 06:55:24 +01:00 |
|
Gwendal Roué
|
cc27c19c66
|
FIXME: sqlite3_rekey is discouraged.
|
2016-11-08 19:37:28 +01:00 |
|
Gwendal Roué
|
23dc818eac
|
Documentation
|
2016-11-06 12:48:05 +01:00 |
|
Gwendal Roué
|
ad4d2831c9
|
Improve FetchedRecordsController misuse feedback
|
2016-11-06 12:37:28 +01:00 |
|
Gwendal Roué
|
57f6b2d122
|
availability cleanup
|
2016-11-05 14:40:14 +01:00 |
|
Gwendal Roué
|
21c41fb145
|
availability cleanup
|
2016-11-05 14:37:36 +01:00 |
|