Gwendal Roué
288144f347
splittingRowAdapters(columnCounts:), ScopeAdapter(nestedScopes:), RowConvertible?(leftJoinedRow:), TableMapping.numberOfSelectedColumns(_:), support for nested codable records
2018-02-21 23:15:13 +01:00
Gwendal Roué
3bdfdaa40a
TableMapping.selectionSQL(_:)
2018-02-21 13:51:37 +01:00
Gwendal Roué
9b27c0c651
WIP TableMapping.filter(key: [:]) and TableMapping.filter(keys: [[:], ])
2018-01-11 19:34:28 +01:00
Gwendal Roué
2af85e7347
WIP TableMapping.filter(key:1) and TableMapping.filter(keys: [1, 2, 3])
2018-01-11 18:09:01 +01:00
Gwendal Roué
a91da59448
Database.primaryKey(_:) no longer returns an Optional. PrimaryKeyInfo.isRowID tells whether the primary key is the rowed.
2017-09-15 09:00:56 +02:00
Gwendal Roué
279faa13e9
Less TODO
2017-09-08 13:23:20 +02:00
Gwendal Roué
8ccc23333d
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
2017-08-23 08:16:30 +02:00
Gwendal Roué
20419834a6
Sequence.Iterator.Element -> Sequence.Element
2017-08-18 18:10:56 +02:00
Gwendal Roué
c700f5fc68
Move TableMapping deletion methods to MutablePersistable (prevent TableMapping from being able to modify the database)
2017-08-18 17:15:10 +02:00
Gwendal Roué
376d295853
Replace TableMapping.selectsRowID with TableMapping.databaseSelection
2017-08-18 16:27:24 +02:00
Gwendal Roué
4ec3e0f7d8
Drop deprecated TableMapping.primaryKeyRowComparator(_:)
2017-08-18 14:30:28 +02:00
Gwendal Roué
06a6c982aa
SE-0148
2017-08-18 14:22:14 +02:00
Gwendal Roué
f72ffcbb43
SE-0165
2017-08-18 14:20:35 +02:00
Gwendal Roué
cdc6370ee5
Restore column ordering in filter(db, keys: [["a": ..., "b": ...], ...]) removed in 2b2e92c810
2017-07-21 13:45:24 +02:00
Gwendal Roué
cc762e4e1d
TODO
2017-07-21 12:20:32 +02:00
Gwendal Roué
ed525bd1d8
Cleanup
2017-07-21 12:15:35 +02:00
Gwendal Roué
2b2e92c810
Cleanup
2017-07-21 12:13:03 +02:00
Gwendal Roué
44d31ead76
Implement deleteAll(_:keys:), deleteOne(_🔑 ) on top of the Query Interface
2017-07-21 11:19:24 +02:00
Gwendal Roué
d12dad2e34
Deprecate TableMapping.primaryKeyRowComparator
2017-06-30 07:47:13 +02:00
Gwendal Roué
26aeb7dcbd
New public function: TableMapping.primaryKeyRowComparator. This new API exposes record comparison abilities that were reserved to FetchedRecordsController, and open a better support for GRDB reactive extensions.
2017-04-02 17:27:25 +02:00
Gwendal Roué
b1d93112da
Embed a copy of sqlite3.h in order to work around my inability at importing <sqlite3.h> from all targeted SDKs (addresses #166 , #170 )
2017-03-26 15:37:31 +02:00
Gwendal Roué
e4a346995b
#171 : rename ResultCode.code into ResultCode.resultCode (@hartbit's suggestion)
2017-02-26 17:24:44 +01:00
Gwendal Roué
7eb592df79
#171 : introduce ResultCode
2017-02-26 15:36:21 +01:00
Gwendal Roué
4dfd672c04
Compound unique keys: preserve index ordering in generated SQL queries
2017-01-22 16:51:02 +01:00
Gwendal Roué
ebff14adac
Cleanup
2017-01-06 08:24:50 +01:00
Gwendal Roué
51f02ed46e
Move TableMapping.primaryKeyFunction and primaryKeyRowComparator into TableMapping.swift
2017-01-06 08:19:07 +01:00
Gwendal Roué
74e89c542a
Cleanup
2016-12-07 18:45:14 +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é
527aed0ea3
Documentation
2016-11-29 14:17:41 +01:00
Gwendal Roué
a8e266377c
Documentation
2016-11-29 12:02:29 +01:00
Gwendal Roué
f8029a6dc9
Remove a couple try!
2016-11-27 15:38:36 +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é
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é
a4aab9f4c2
TableMapping.selectsRowID test
2016-10-08 08:33:19 +02:00
Gwendal Roué
2d6abc088f
TableMapping.selectsRowID + passing tests for FTS3Record
2016-10-07 19:17:40 +02:00
Gwendal Roué
915e72584c
fetchOne(_🔑 ), fetch(_:keys:), fetchAll(_:keys:), deleteOne(_🔑 ), and deleteAll(_:keys:) now assumes a rowID primary key when table has no explicit primary key.
2016-10-07 17:47:29 +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é
b191323e2b
Query Interface deletion documentation
2016-09-07 18:06:30 +02:00
Gwendal Roué
238ebdeed8
Fix the documentation of delete/Fetch/One/All(keys:) so that it makes clear that arguments are unique keys.
2016-09-07 13:44:25 +02:00
Gwendal Roué
b5bb92459d
WatchOS framework (adresses #96 )
2016-08-10 06:27:50 +02:00
Gwendal Roué
f6ae7587ea
More where clause to end of function declarations
2016-08-02 08:20:05 +02:00
Gwendal Roué
2a91ab07b9
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/Core/Statement.swift
TODO.md
Tests/Private/RecordUniqueIndexTests.swift
2016-07-22 09:01:39 +02:00
Gwendal Roué
fcf90a053a
Database.indexes(on:) and Database.table(_:hasUniqueKey:) are public
2016-07-21 19:08:27 +02:00
Gwendal Roué
23ffef8943
Swift3: turn TableMapping.databaseTableName() into a read-only property
2016-07-20 18:38:56 +02:00
Gwendal Roué
b24075ca1c
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
GRDB/Core/DatabaseSchemaCache.swift
GRDB/Core/Utils.swift
GRDB/Record/TableMapping.swift
README.md
Tests/Private/DatabasePoolSchemaCacheTests.swift
Tests/Public/Encryption/EncryptionTests.swift
Tests/Public/Record/PrimaryKeyNoneTests.swift
2016-07-07 08:41:17 +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