Commit Graph
159 Commits
Author SHA1 Message Date
Gwendal Roué 4edd76341e There are two statement caches: one for statements generated by the user, and one for the statements generated by GRDB. Those are separated so that GRDB has no opportunity to inadvertently modify the arguments of user statements. 2017-05-04 18:05:36 +02:00
Gwendal Roué c8023adff1 Cleanup 2017-04-20 14:49:08 +02:00
Gwendal Roué 63b3b4225a Rename package to GRDB, and rename SQLite module to CSQLite 2017-04-11 13:22:26 +02:00
Andrey Fidrya 1751fb38e5 SPM support 2017-04-08 21:32:58 +03:00
Gwendal Roué 6c6bbf6294 Fix failing test for SELECT COUNT(*) FROM table observation 2017-04-06 10:35:41 +02:00
Gwendal Roué 7bc3582525 SelectStatement.SelectionInfo.description 2017-04-02 14:18:48 +02:00
Gwendal Roué 311ad6b940 New public APIs: SelectStatement.selectionInfo, DatabaseEventKind.impacts(_:). Those new APIs expose database observation abilities that were reserved to FetchedRecordsController, and open a better support for GRDB reactive extensions. 2017-04-01 16:01:55 +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é 1b44683cfe #171: cleanup 2017-03-02 08:21:29 +01: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é 484b440816 Database.cachedSelectStatement() no longer returns a statement that can not be reused because it has already failed. 2016-12-21 18:59:23 +01:00
Gwendal Roué 5355555568 Typo 2016-12-16 07:42:34 +01:00
Gwendal Roué 3e01bca690 Documentation 2016-12-16 05:25:18 +01:00
Gwendal Roué 44cefc89e4 Documentation for StatementArguments.append(contentsOf:) and operators +, &+, += 2016-12-16 05:02:27 +01:00
Gwendal Roué d4c7b41897 StatementArguments.append(contentsOf:) returns the updated values; operators +, &+, += 2016-12-15 21:39:28 +01:00
Gwendal Roué 0ecf6b5aa1 Drop StatementArguments + StatementArguments (because it allows [1, 2] + ["foo": 1] to compile) 2016-12-15 17:50:56 +01:00
Gwendal Roué cb51c03992 StatementArguments + StatementArguments 2016-12-15 17:47:01 +01:00
Gwendal Roué 5dca5fe3cb StatementArguments.append(contentsOf:) refuses to update named arguments 2016-12-15 17:38:33 +01:00
Gwendal Roué a7acd50159 StatementArguments.append(contentsOf:) 2016-12-15 17:26:23 +01:00
Gwendal Roué 115158a70e Cleanup 2016-12-14 20:19:10 +01:00
Gwendal Roué a0d9b9fbe8 Support for free BEGIN/COMMIT/ROLLBACK statements 2016-12-14 08:07:42 +01:00
Gwendal Roué cb81e50f71 Request.adapted(_:) 2016-12-11 21:07:52 +01:00
Gwendal Roué 261eb19fea Documentation 2016-12-04 06:51:14 +01:00
Gwendal Roué 67035b8422 Database.execute(_:) iterates all rows of statements 2016-12-02 08:28:24 +01:00
Gwendal Roué 2cec3f29d1 Statement.fetchCursor() no longer throws. TODO: Type.fetchCursor(statement) should not throw 2016-11-30 09:18:22 +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é a8e266377c Documentation 2016-11-29 12:02:29 +01:00
Gwendal Roué 829eb7d3a2 SelectStatement.SelectionInfo cleanup 2016-11-27 15:12:08 +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é 66bedf46a1 #147: DatabaseCursor.enumerated() 2016-11-26 15:19:40 +01:00
Gwendal Roué a196ac03b1 #147: tests for DatabaseCursor.filter, forEach, map, reduce; dropped DatabaseCursor.enumerated since it can't be implemented yet 2016-11-26 14:39:09 +01:00
Gwendal Roué c80f0d317a #147: Array(cursor) initialiser; base all fetchAll and fetchOne methods on fetchCursor. 2016-11-26 09:13:39 +01:00
Gwendal Roué b0db219aeb #147: Rename DatabaseCursor.step() into next 2016-11-26 08:20:26 +01:00
Gwendal Roué 20a7c550fe DatabaseCursor.enumerated, filter, forEach, map, reduce are public. Once DatabaseCursor.step() has returned nil, all subsequent calls return nil. (addresses #147) 2016-11-26 07:37:34 +01:00
Gwendal Roué 2eb190dbbb Base DatabaseSequence on DatabaseCursor (addresses #147) 2016-11-26 00:56:37 +01:00
Gwendal Roué d97360ef52 DatabaseCursor.enumerated, filter, forEach, map, reduce (addresses #147) 2016-11-25 19:12:36 +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é 2cd8f56842 Documentation 2016-11-17 08:28:21 +01:00
Gwendal Roué fcc316674e #92, #129: FTS3Pattern cleanup 2016-10-03 09:07:26 +02:00
Gwendal Roué 6f3b5b1c61 #92: introduce FTS4Pattern (addresses #129) 2016-09-30 10:47:36 +02:00
Gwendal Roué 5a572b25a0 Refactor the query interface types to enhance extensibility 2016-09-27 23:11:21 +02:00
Gwendal Roué eac0901af0 Refactor database event filtering 2016-09-10 18:28:44 +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é 854c070b82 Xcode Version 8.0 beta 6 (8S201h) 2016-08-16 17:47:57 +02:00
Gwendal Roué b5bb92459d WatchOS framework (adresses #96) 2016-08-10 06:27:50 +02:00
Gwendal Roué 580532aeca Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
	GRDB/Core/Statement.swift
2016-08-08 08:10:48 +02:00
Gwendal Roué 76ab3fd1ab Better compilation time 2016-08-07 15:26:30 +02:00
Gwendal Roué f6ae7587ea More where clause to end of function declarations 2016-08-02 08:20:05 +02:00