Commit Graph
1613 Commits
Author SHA1 Message Date
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é 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é 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é 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é 48c431c0a9 Backup clears the schema cache of the target database 2016-06-28 13:07:53 +02:00
Gwendal Roué 8992b4a284 Move FetchRequest to Core 2016-06-28 09:09:06 +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é 219899fc9b Query Interface arguments to SQL snippets 2016-06-18 14:49:17 +02:00
Gwendal Roué 26f08a59ad Documentation 2016-06-15 06:36:41 +02:00
Gwendal Roué 181aea9aec Support for URL 2016-06-14 21:09:11 +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é 0b568b2d28 Documentation 2016-06-14 19:23:36 +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é 2a5bdbcbdc BROKEN - Xcode 8 WIP 2016-06-14 09:08:43 +02:00
Gwendal Roué 2606f7196e SuffixRowAdapter index preconditions 2016-06-09 09:11:44 +02:00
Gwendal Roué a65d7cdc15 Documentation fix 2016-06-09 08:30:19 +02:00
Gwendal Roué 1a17efcf8e Documentation fix 2016-06-09 08:28:17 +02:00
Gwendal Roué a7ac615bb2 Merge branch 'master' into RowAdapter2 2016-06-09 07:33:42 +02:00
Gwendal Roué 90fc23205c Cleanup 2016-06-09 06:21:39 +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
Gwendal Roué a882a5f346 RowAdapter documentation 2016-06-08 20:54:25 +02:00
Gwendal Roué 390cf44a88 RowAdapter documentation 2016-06-08 09:00:22 +02:00
Gwendal Roué 3e71253ffb RowAdapter documentation 2016-06-08 08:17:37 +02:00
Gwendal Roué 748e2a81ad RowAdapter documentation 2016-06-08 08:03:35 +02:00
Gwendal Roué d3ebe43cbd RowAdapter refactoring 2016-06-08 06:41:37 +02:00
Gwendal Roué 15f9aabaf0 SuffixRowAdapter 2016-06-07 22:18:13 +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é 30864a16a2 #68: numeric overflow error messages contain the faulty value 2016-06-05 14:02:28 +02:00
Gwendal Roué 7186c9a3a0 #68: take care of Int, Int32 and Int64 overflow when converting from database values 2016-06-05 13:49:47 +02:00
Gwendal Roué a5760a7462 #68: NSNumber.databaseValue raises explicit fatal error when value doesn’t fit Int64 2016-06-05 12:16:37 +02:00
Gwendal Roué ac9b2e8ba4 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis 2016-06-04 12:10:36 +02:00
swiftlyfalling 003a6ef4d2 Added missing call to uninstall the preupdate hook 2016-06-03 12:45:28 -04:00
Gwendal Roué 8f2685b335 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3bis
Conflicts:
	GRDB/Core/Database.swift
2016-06-03 08:44:27 +02:00
Gwendal Roué cd85b54dd7 #63 follow-up: let DatabaseEventType dispatch events to the correct TransactionObserver method so that we avoid runtime checks on events type 2016-06-03 08:37:53 +02:00
Gwendal Roué 6dd04142b3 #63 follow-up: remove DatabaseEventType from public API 2016-06-03 08:31:17 +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