Gwendal Roué
095778cf0f
Documentation
2016-11-30 10:53:57 +01:00
Gwendal Roué
2cec3f29d1
Statement.fetchCursor() no longer throws. TODO: Type.fetchCursor(statement) should not throw
2016-11-30 09:18:22 +01:00
Gwendal Roué
6bcab179d1
Classify all try! and fatalError into TODO, Programmer Error, or GRDB bug that needs to be fixed.
2016-11-30 08:56:45 +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é
b85a8b8b0b
#147 : DatabaseValueConvertible.fetchOne() can throw conversion errors
2016-11-27 18:21:04 +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é
c80f0d317a
#147 : Array(cursor) initialiser; base all fetchAll and fetchOne methods on fetchCursor.
2016-11-26 09:13:39 +01:00
Gwendal Roué
b0db219aeb
#147 : Rename DatabaseCursor.step() into next
2016-11-26 08:20:26 +01:00
Gwendal Roué
2eb190dbbb
Base DatabaseSequence on DatabaseCursor (addresses #147 )
2016-11-26 00:56:37 +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é
2d6abc088f
TableMapping.selectsRowID + passing tests for FTS3Record
2016-10-07 19:17:40 +02:00
Gwendal Roué
1244b6b283
Move == operators inside their adopting type
2016-09-30 06:00:50 +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é
a8b067885f
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
README.md
TODO.md
2016-09-08 08:37:58 +02:00
Gwendal Roué
72ab62b21b
Merge branch 'WatchOS' of github.com:groue/GRDB.swift
2016-09-07 22:17:08 +02:00
Gwendal Roué
81c0e73751
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/Core/Row.swift
GRDB/QueryInterface/SQLTableBuilder.swift
README.md
2016-08-17 12:58:41 +02:00
Gwendal Roué
854c070b82
Xcode Version 8.0 beta 6 (8S201h)
2016-08-16 17:47:57 +02:00
Gwendal Roué
5aaecd3946
Row.value(SQLColumn)
2016-08-13 10:59:16 +02:00
Gwendal Roué
b5bb92459d
WatchOS framework (adresses #96 )
2016-08-10 06:27:50 +02:00
Gwendal Roué
580532aeca
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/Core/Statement.swift
2016-08-08 08:10:48 +02:00
Gwendal Roué
ced9493069
Better compilation time
2016-08-07 15:26:39 +02:00
Gwendal Roué
00a1eebf60
Swift 3 Grand Renaming: SQLColumn -> Column
2016-08-07 10:38:24 +02:00
Gwendal Roué
2d78d04d52
Update for Xcode Version 8.0 beta 4 (8S188o)
2016-08-01 22:33:50 +02:00
Gwendal Roué
ebe147ee34
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Row.swift
README.md
TODO.md
2016-08-01 18:47:42 +02:00
Gwendal Roué
0fb1eec3cd
Row adopts DictionaryLiteralConvertible
2016-07-31 06:18:16 +02:00
Gwendal Roué
6aeee05e8a
Code cleanup
2016-07-22 08:18:04 +02:00
Gwendal Roué
a288c8d7fb
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB/Core/Database.swift
GRDB/Core/RowAdapter.swift
README.md
Tests/Public/Core/Row/AdapterRowTests.swift
Tests/Public/Core/Row/RowConvertibleTests.swift
2016-07-08 16:57:16 +02:00
Gwendal Roué
b78c5b32c6
Documentation
2016-07-08 10:01:23 +02:00
Gwendal Roué
358c3ab0c3
Row adapters: rename "variants" to "scopes"
2016-07-08 08:44:41 +02:00
Gwendal Roué
82b801498a
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/DatabaseValueConvertible.swift
GRDB/Core/Row.swift
GRDB/Core/StatementColumnConvertible.swift
GRDB/FetchRequest/FetchRequest.swift
GRDB/QueryInterface/QueryInterfaceRequest.swift
GRDB/Record/RowConvertible.swift
README.md
Tests/Public/Core/DatabaseValueConvertible/DatabaseValueConvertibleFetchTests.swift
Tests/Public/Core/SQLiteStatementConvertible/SQLiteStatementConvertibleFetchTests.swift
Tests/Public/FetchRequest/FetchRequestTests.swift
Tests/Public/Foundation/NSDateTests.swift
2016-06-29 13:38:24 +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é
f5db3c08e3
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/RowAdapter.swift
GRDB/Core/Support/Foundation/NSNumber.swift
README.md
Tests/Public/Core/Row/RowConvertibleTests.swift
Tests/Public/FetchRequest/FetchRequestTests.swift
2016-06-14 19:42:21 +02:00
Gwendal Roué
d52c552721
Xcode 8 WIP
2016-06-14 12:51:33 +02:00
Gwendal Roué
390cf44a88
RowAdapter documentation
2016-06-08 09:00:22 +02:00
Gwendal Roué
d3ebe43cbd
RowAdapter refactoring
2016-06-08 06:41:37 +02:00
Gwendal Roué
c617a8f354
RowAdapter refactoring
2016-06-07 21:44:32 +02:00
Gwendal Roué
6ac2cd4686
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/AppDatabase.swift
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/Person.swift
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/PersonEditionViewController.swift
DemoApps/GRDBDemoiOS7/GRDBDemoiOS7/PersonsViewController.swift
GRDB/Core/Support/Foundation/NSNumber.swift
GRDB/Core/Support/StandardLibrary/StandardLibrary.swift
GRDB/Record/FetchedRecordsController.swift
Tests/Public/Core/DatabaseValueConvertible/NSNumberTests.swift
Tests/Public/FetchedRecordsController/FetchedRecordsControllerTests.swift
2016-06-07 19:01:08 +02:00
Gwendal Roué
1d4bff1add
#68 : conversion error messages contain the "database" word.
2016-06-05 14:57:07 +02:00
Gwendal Roué
88c284dbf1
Merge branch 'master' into Swift3bis
...
Conflicts:
GRDB/Core/Database.swift
GRDB/FetchRequest/QueryInterfaceRequest.swift
GRDB/FetchRequest/SQLCollation.swift
GRDB/FetchRequest/SQLFunction.swift
GRDB/FetchRequest/SQLOperator.swift
GRDB/FetchRequest/SQLSelectQuery.swift
README.md
2016-06-02 20:47:04 +02:00
Gwendal Roué
aa6097dff8
swift-DEVELOPMENT-SNAPSHOT-2016-05-31-a
2016-06-02 19:58:58 +02:00
Gwendal Roué
7c4ff7677d
swift-DEVELOPMENT-SNAPSHOT-2016-05-09-a
2016-06-02 08:38:15 +02:00
swiftlyfalling
30bc7e4f6c
Replace most uses of #if SQLITE_HAS_CODEC with the appropriate USING_BUILTIN_SQLITE or USING_SQLCIPHER defines.
...
This enables easier compilation of a custom version of SQLite that
itself uses the SQLITE_HAS_CODEC define. (ex. If building SQLite with
the SQLite Encryption Extension.)
The SQLITE_HAS_CODEC define is now only used to guard use of the SQLite
encryption APIs.
GRDBCipher builds define USING_BUILTIN_SQLITE and USING_SQLCIPHER.
2016-05-30 18:19:45 -04: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é
25dd52fdda
Documentation
2016-05-19 05:55:06 +02:00
Gwendal Roué
c891c3cff8
Merge branch 'master' into RowAdapter
2016-05-19 05:40:15 +02:00