Commit Graph
1676 Commits
Author SHA1 Message Date
Gwendal Roué b16656bd23 Partial update WIP: cache & column case insensitivity 2016-07-28 19:28:46 +02:00
Gwendal Roué 176a23fe97 Partial update WIP: tests 2016-07-28 08:53:17 +02:00
Gwendal Roué 50ce433bcb Partial update WIP: public API 2016-07-28 08:25:08 +02:00
Gwendal Roué 77278e77eb Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	GRDB/QueryInterface/QueryInterfaceRequest.swift
	GRDB/QueryInterface/SQLCollation.swift
	GRDB/QueryInterface/SQLSelectQuery.swift
2016-07-22 13:48:39 +02:00
Gwendal Roué c6f2c8a3f5 Remove dead code 2016-07-22 13:40:07 +02:00
Gwendal Roué e037972dbb Remove dead code 2016-07-22 13:38:31 +02:00
Gwendal Roué ba24c55d41 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	GRDB.xcodeproj/project.pbxproj
	GRDB/QueryInterface/QueryInterfaceRequest.swift
	GRDB/QueryInterface/SQLCollation.swift
	GRDB/QueryInterface/SQLSelectQuery.swift
2016-07-22 13:04:20 +02:00
Gwendal Roué 034a24dfe3 _SQLExpression.sql(_:_:) turns all values into safely escaped SQL literals when given nil arguments. (addresses #83) 2016-07-22 12:56:26 +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é 111d11a71b DatabaseValueConvertible.sqlLiteral returns a safely escaped SQL literal (addresses #83) 2016-07-22 08:49:35 +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é 68f4f011b7 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
	GRDB/QueryInterface/QueryInterfaceRequest.swift
	README.md
	Tests/Public/QueryInterfaceRequest/QueryInterfaceRequestTests.swift
2016-07-19 14:08:05 +02:00
Gwendal Roué ebdd6c5a4d Update for Xcode Version 8.0 beta 3 (8S174q) 2016-07-19 14:01:46 +02:00
Gwendal Roué 0677a8a21a The query interface order method replaces any previously applied ordering (see #85) 2016-07-19 08:53:43 +02:00
Gwendal Roué 02d2b89a4d Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	GRDB.xcodeproj/project.pbxproj
	GRDB/Core/Database.swift
	GRDB/Core/DatabaseScheduler.swift
	GRDB/Core/SerializedDatabase.swift
	GRDB/Core/Statement.swift
2016-07-08 18:30:16 +02:00
Gwendal Roué 34ff64b103 Rename DatabaseScheduler to SchedulingWatchdog 2016-07-08 18:22:34 +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é 88e8c2ba33 #80 cleanup 2016-07-08 16:10:38 +02:00
Gwendal Roué e664ab18ee Fixes #80 2016-07-08 14:30:45 +02:00
Gwendal Roué 358c3ab0c3 Row adapters: rename "variants" to "scopes" 2016-07-08 08:44:41 +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é 0c7cff5602 Update for Xcode Version 8.0 beta 2 (8S162m) 2016-07-07 05:30:43 +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é 16a3b88db5 Document how to encrypt an existing database (should help #77) 2016-07-05 14:37:28 +02:00
Gwendal Roué e785085d0d Cleanup our code thanks to DispatchQueue.sync<T>(block: @noescape () throws -> T) rethrows. 2016-06-30 18:38:16 +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é aaf184ddb3 Tests for StatementColumnConvertible fetching methods with adapter 2016-06-28 14:46:26 +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é b624874768 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	GRDB.xcodeproj/project.pbxproj
	GRDB/Core/Database.swift
	GRDB/Core/DatabaseWriter.swift
	GRDB/Core/Statement.swift
	GRDB/FetchRequest/QueryInterfaceRequest.swift
	GRDB/FetchRequest/SQLCollation.swift
	GRDB/FetchRequest/SQLSelectQuery.swift
	GRDB/Record/FetchedRecordsController.swift
	README.md
	Tests/Private/StatementInformationTests.swift
	Tests/Public/Core/DatabaseValueConvertible/DatabaseValueConversionTests.swift
	Tests/Public/Core/SQLiteStatementConvertible/SQLiteStatementConversionTests.swift
2016-06-21 09:03:02 +02:00
Gwendal Roué cae3d7b321 Support for NSUUID 2016-06-20 22:37:31 +02:00
Gwendal Roué e0ea5af18e Refactor database events filtering 2016-06-20 20:38:31 +02:00
Gwendal Roué 6a466fcb12 Detailed database changes observation 2016-06-20 15:21:14 +02:00
Gwendal Roué 9a397c1ff8 Emoji tests 2016-06-19 11:14:11 +02:00
Gwendal Roué 219899fc9b Query Interface arguments to SQL snippets 2016-06-18 14:49:17 +02:00
Gwendal Roué 181aea9aec Support for URL 2016-06-14 21:09:11 +02:00
Gwendal Roué 1d1d843dc7 Xcode 8 WIP 2016-06-14 20:05:13 +02:00
Gwendal Roué abd6fe9f2d Xcode 8 WIP 2016-06-14 19:48:46 +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é 42885a3df0 Xcode 8 WIP 2016-06-14 19:14:10 +02:00
Gwendal Roué cd820c2dbe Xcode 8 WIP 2016-06-14 19:06:53 +02:00
Gwendal Roué 0944ed331b Xcode 8 WIP 2016-06-14 14:04:04 +02:00
Gwendal Roué f45b9a3757 Xcode 8 WIP 2016-06-14 13:45:08 +02:00
Gwendal Roué d52c552721 Xcode 8 WIP 2016-06-14 12:51:33 +02:00
Gwendal Roué a7ac615bb2 Merge branch 'master' into RowAdapter2 2016-06-09 07:33:42 +02:00
Gwendal Roué a8df726bff NSDecimalNumber.databaseValue only returns a double when the decimal number does not contain an integer that fits in Int64. 2016-06-08 23:14:49 +02:00