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é
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é
c80f0d317a
#147 : Array(cursor) initialiser; base all fetchAll and fetchOne methods on fetchCursor.
2016-11-26 09:13:39 +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é
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é
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é
21c41fb145
availability cleanup
2016-11-05 14:37:36 +01:00
Gwendal Roué
7058bb5e12
Have DatabaseError adopt CustomNSError
2016-10-18 05:49:12 +02:00
Gwendal Roué
628c375b8c
Documentation
2016-10-10 15:31:05 +02:00
Gwendal Roué
58025d3b01
Remove unused code
2016-10-08 16:59:29 +02:00
Gwendal Roué
591197422d
Prefer flatMap to guard when chaining values
2016-10-08 16:56:39 +02:00
Gwendal Roué
027b1f711c
URL, UUID and Date now adopt DatabaseValueConvertible through NSURL, NSUUID and NSDate, thanks to the new support for Foundation's ReferenceConvertible.
2016-10-08 16:54:32 +02:00
Gwendal Roué
3c822399b1
Restore DatabaseValue.description into its previous behavior, and test that \n or \t are described as "\\n" and "\\t" (avoid multi-line DatabaseValue description)
2016-10-08 14:38:30 +02:00
Gwendal Roué
ae7252fbec
Code cleanup
2016-10-08 14:37:14 +02:00
Gwendal Roué
a51ccad560
Code cleanup
2016-10-08 11:52:46 +02:00
Gwendal Roué
b8ab30fc22
DatabaseValue.description now returns the SQL literal representation of the value
2016-10-08 11:51:10 +02:00
Gwendal Roué
915bc6c7cd
Less TODO
2016-10-08 11:36:22 +02:00
Gwendal Roué
2d6abc088f
TableMapping.selectsRowID + passing tests for FTS3Record
2016-10-07 19:17:40 +02:00
Gwendal Roué
fcc316674e
#92 , #129 : FTS3Pattern cleanup
2016-10-03 09:07:26 +02:00
Gwendal Roué
6f3b5b1c61
#92 : introduce FTS4Pattern (addresses #129 )
2016-09-30 10:47:36 +02:00
Gwendal Roué
1244b6b283
Move == operators inside their adopting type
2016-09-30 06:00:50 +02:00
Gwendal Roué
5ba06a74a0
Remove support for text encodings
2016-09-28 07:14:22 +02:00
Gwendal Roué
5a572b25a0
Refactor the query interface types to enhance extensibility
2016-09-27 23:11:21 +02:00
Gwendal Roué
03187804c4
Minor
2016-09-23 08:04:45 +02:00
Gwendal Roué
99b005f0cc
Minor
2016-09-23 07:40:57 +02:00
Gwendal Roué
dda8df678a
Documentation
2016-09-21 09:15:27 +02:00
Gwendal Roué
e06abbc354
Documentation
2016-09-21 09:14:00 +02:00
Gwendal Roué
26938c245b
Documentation
2016-09-21 09:12:51 +02:00
Gwendal Roué
54e9803080
Rename SchedulingWatchdog.makeSerializedQueueAllowing(database:) to SchedulingWatchdog.makeSerializedQueue(allowingDatabase:)
2016-09-21 09:11:23 +02:00
Gwendal Roué
f573046107
Merge branch 'Swift2.3' of github.com:groue/GRDB.swift
...
Conflicts:
CHANGELOG.md
GRDB.swift.podspec
GRDB/Core/DatabaseValue.swift
GRDB/Core/Row.swift
GRDB/Core/RowAdapter.swift
GRDB/Record/Record.swift
README.md
Support/Info.plist
Tests/Public/Core/DatabaseValue/DatabaseValueTests.swift
Tests/Public/Record/MinimalPrimaryKeyRowIDTests.swift
Tests/Public/Record/MinimalPrimaryKeySingleTests.swift
Tests/Public/Record/PrimaryKeyMultipleTests.swift
Tests/Public/Record/PrimaryKeyRowIDTests.swift
Tests/Public/Record/PrimaryKeySingleTests.swift
Tests/Public/Record/PrimaryKeySingleWithReplaceConflictResolutionTests.swift
2016-09-16 06:46:42 +02:00
Gwendal Roué
4a1706ede6
Remove Row.databaseValue(atIndex:) and Row.databaseValue(named:)
2016-09-16 05:58:17 +02:00
Gwendal Roué
f5cb34f506
DatabaseValue no longer adopts StatementColumnConvertible; DatabaseValue.fromDatabaseValue() no longer returns nil for NULL ( fixes #119 )
2016-09-16 05:48:09 +02:00
Gwendal Roué
f825f43528
Upgrade custom SQLite builds to v3.14.1, and restore support for SQLite pre-update hooks
2016-09-15 09:05:09 +02:00
Gwendal Roué
2bcf6a5da8
Restore FetchedRecordsController ( fixes #117 )
...
The Swift 3 compiler in Release configuration collapses when a property of type DatabaseWriter calls its rethrowing write() method. This commit introduces an ad-hoc non-rethrowing method to make the compiler happy.
2016-09-13 13:39:01 +02:00