93 Commits
Author SHA1 Message Date
Gwendal Roué d4c7b41897 StatementArguments.append(contentsOf:) returns the updated values; operators +, &+, += 2016-12-15 21:39:28 +01:00
Gwendal Roué 5dca5fe3cb StatementArguments.append(contentsOf:) refuses to update named arguments 2016-12-15 17:38:33 +01:00
Gwendal Roué cb08660a78 Rename FetchRequest -> Request 2016-12-08 13:56:05 +01:00
Gwendal Roué 0008e4b645 FetchedRecordsController's ObservedRequest adopts TypedFetchRequest 2016-12-07 22:39:53 +01:00
Gwendal Roué 89e7a62d99 Introduce AnyFetchRequest, TypedFetchRequest, AnyTypedFetchRequest 2016-12-07 22:21:19 +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é 87024f0426 QueryInterfaceSelectQueryDefinition.makeDeleteStatement() throws 2016-11-27 15:26:23 +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é a548212f27 #147: tests for QueryInterfaceRequest.fetchCursor(_:) and (RowConvertible & TableMapping).fetchCursor(_:) 2016-11-26 11:20:35 +01:00
Gwendal Roué 612c963105 TODO 2016-11-26 10:23:41 +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é 57f6b2d122 availability cleanup 2016-11-05 14:40:14 +01:00
Gwendal Roué c4dfd24782 CountableRange.contains(): turn 0..<10.contains(x) to "x >= 0 AND x < 10" instead of "x BETWEEN 0 AND 9" (and avoid Int ranges to mess with double values) 2016-10-21 09:14:19 +02:00
Gwendal Roué 9ae2de6dc1 DatabaseValue.negated: prefer 1 to NOT 0 2016-10-21 09:13:03 +02:00
Gwendal Roué 00de9bbbc5 Database.create(virtualTable:using:) wraps the table creation and virtual module post actions in a save point. Fix failing test for virtual module that throws in its database(_:didCreate:using:) method. 2016-10-17 19:23:11 +02:00
Gwendal Roué 2fd3ded6e2 TableMapping.none() 2016-10-17 09:09:17 +02:00
Gwendal Roué 55216be46b FTS5: support for external content table synchronization 2016-10-16 09:32:41 +02:00
Gwendal Roué db0dfdcd59 VirtualTableModule cleanup and documentation 2016-10-08 13:36:27 +02:00
Gwendal Roué fc49643860 Remove QueryInterfaceRequest public initializer 2016-10-08 13:06:46 +02:00
Gwendal Roué 829451486e Documentation 2016-10-08 12:18:48 +02:00
Gwendal Roué 2d6abc088f TableMapping.selectsRowID + passing tests for FTS3Record 2016-10-07 19:17:40 +02:00
Gwendal Roué 0936793b23 TODO 2016-10-07 17:35:07 +02:00
Gwendal Roué f1ecdfc9df #92: Refactor experimental API around virtual tables creation so that virtual modules can require initialization parameters 2016-10-04 09:37:01 +02:00
Gwendal Roué 01fc9f6130 #92: Experimental API around virtual tables creation 2016-10-04 09:08:23 +02:00
Gwendal Roué 11301d7b63 Remove obsolete code 2016-10-03 22:35:31 +02:00
Gwendal Roué 92ac40e4da #92, #129: FTS3Pattern cleanup 2016-10-03 12:18:52 +02:00
Gwendal Roué a0237d4259 #92, #129: FTS3Pattern ~= Column 2016-10-03 08:34:12 +02:00
Gwendal Roué 1244b6b283 Move == operators inside their adopting type 2016-09-30 06:00:50 +02:00
Gwendal Roué 5a572b25a0 Refactor the query interface types to enhance extensibility 2016-09-27 23:11:21 +02:00
Gwendal Roué 365e44e376 TableMapping.deleteAll(db) 2016-09-17 12:50:57 +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é e4ae0988a4 QueryInterfaceRequest.deleteAll (for @pakko972) 2016-09-07 14:10:16 +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é 9999ced817 Pass tests for table creation DSL with auto references
Conflicts:
	CHANGELOG.md
2016-08-16 19:03:35 +02:00
Gwendal Roué 854c070b82 Xcode Version 8.0 beta 6 (8S201h) 2016-08-16 17:47:57 +02:00
Gwendal Roué c92f0f3edf Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
	GRDB/QueryInterface/SQLTableBuilder.swift
	GRDB/Record/Persistable.swift
	GRDB/Record/Record.swift
	README.md
	TODO.md
	Tests/Public/Core/Persistable/MutablePersistableTests.swift
	Tests/Public/SQLTableBuilder/SQLTableBuilderTests.swift
2016-08-10 20:43:24 +02:00
Gwendal Roué d9e77284c1 Pass test for multiple foreign keys on a column 2016-08-10 13:23:24 +02:00
Gwendal Roué 4be1923921 Pass test for multiple check constraints on a column 2016-08-10 08:48:24 +02:00
Gwendal Roué b5bb92459d WatchOS framework (adresses #96) 2016-08-10 06:27:50 +02:00
Gwendal Roué 95289f1715 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
	GRDB/QueryInterface/SQLTableBuilder.swift
	README.md
	TODO.md
	Tests/Public/SQLTableBuilder/SQLTableBuilderTests.swift
2016-08-08 13:35:59 +02:00
Gwendal Roué c6fd36b75d SQLTableBuilder: column.defaults(to:) 2016-08-08 13:19:43 +02:00
Gwendal Roué 2c3bf06740 Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
	GRDB/QueryInterface/QueryInterfaceRequest.swift
	GRDB/QueryInterface/SQLCollation.swift
	GRDB/QueryInterface/SQLFunction.swift
	GRDB/QueryInterface/SQLOperator.swift
	GRDB/QueryInterface/SQLSelectQuery.swift
	GRDB/QueryInterface/SQLTableBuilder.swift
2016-08-07 12:57:48 +02:00
Gwendal Roué a132b58227 Promote _SQLExpressible protocol to SQLExpressible 2016-08-07 12:46:19 +02:00
Gwendal Roué a8ac895998 Swift 3 documentation 2016-08-07 12:24:32 +02:00
Gwendal Roué ee8aa1d9c6 Swift 3: move @noescape qualifiers 2016-08-07 11:04:04 +02:00