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
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é
e11673d15c
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
...
Conflicts:
GRDB/Core/Database.swift
GRDB/FetchRequest/SQLSelectQuery.swift
GRDB/Record/FetchedRecordsController.swift
GRDB/Record/TableMapping.swift
Tests/Public/Core/Persistable/MutablePersistableTests.swift
Tests/Public/Core/Persistable/PersistableTests.swift
Tests/Public/Core/Savepoint/SavepointTests.swift
Tests/Public/Core/TransactionObserver/TransactionObserverSavepointsTests.swift
Tests/Public/Core/TransactionObserver/TransactionObserverTests.swift
2016-06-03 05:17:11 +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
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
Gwendal Roué
bc512e775c
Issue #60 : make PrimaryKey public
2016-05-25 08:41:54 +02:00
Gwendal Roué
9f4b03c14f
Mark methods that are slow to compile (thanks to https://medium.com/swift-programming/speeding-up-slow-swift-build-times-922feeba5780 )
2016-04-28 06:36:23 +02:00
Gwendal Roué
4bcff181c7
Back to block-based database accesses.
...
Rationale: https://medium.com/@gwendal.roue/four-different-ways-to-handle-sqlite-concurrency-db3bcc74d00e
2016-04-08 08:29:58 +02:00
Gwendal Roué
06095ec343
Fix #37
2016-03-31 10:27:12 +02:00
Gwendal Roué
63545c1f08
Documentation
2016-03-15 19:05:04 +01:00
Gwendal Roué
9e9fafcc5c
Documentation
2016-03-12 08:21:17 +01:00
Gwendal Roué
61f944fdaa
Cleanup
2016-03-11 18:12:42 +01:00
Gwendal Roué
6f4a29e6f8
DatabaseReader WIP
2016-03-11 07:34:44 +01:00
Gwendal Roué
7364d99b6b
WIP
2016-03-10 18:51:08 +01:00
Gwendal Roué
8cdacf3899
Rename SQLiteStatementConvertible to StatementColumnConvertible + Project organization
2016-02-07 08:51:28 +01:00