Commit Graph
65 Commits
Author SHA1 Message Date
Gwendal Roué 6157ab0583 Have cursors reset their statement when they are deinitialized
This is the real fix for #424. GRDB used to keep unfinished SQLite statements around. Now cursors properly reset their statement when they are done. We no longer have to clear the statement cache before a backup.
2018-10-05 08:13:23 +02:00
Gwendal Roué 66541922a4 More cleanup 2018-08-12 12:27:47 +02:00
Gwendal Roué ef10e2e8ed General cleanup:
- rename ValueConversionDebuggingInfo to ValueConversionContext
- allow missing value conversion context (when decoding a raw DatabaseValue)
- rename ColumnCursor to FastDatabaseValueCursor
- rename NullableColumnCursor to FastNullableDatabaseValueCursor
2018-08-11 19:45:58 +02:00
Gwendal Roué 220ce379e1 Test conversion error messages 2018-08-09 14:00:33 +02:00
Gwendal Roué bcc45dc076 no more throwing conversion methods, and refactor ValueConversionDebuggingInfo 2018-08-09 08:51:50 +02:00
Gwendal Roué f8de01779c Cleanup 2018-08-06 13:40:05 +02:00
Gwendal Roué a8f6ed6d61 improve value conversion diagnostics more 2018-08-06 13:40:05 +02:00
Gwendal Roué 1c811a61ca improve value conversion diagnostics 2018-08-06 13:40:05 +02:00
Gwendal Roué cdf5462005 Harmonize fetching methods with CustomizedDecodingOfDatabaseRows playground 2018-05-21 08:39:48 +02:00
Gwendal Roué 1bf7f67008 Update inline documentation with singular table names 2018-05-01 20:32:18 +02:00
Gwendal Roué d39f02113c Restore T.fetchXXX(db, request) APIs which were removed in PR #311 2018-04-16 08:50:55 +02:00
Gwendal Roué 090f872e80 Update documentation: don't mention dbQueue.inDatabase unless necessary 2018-04-15 18:09:34 +02:00
Gwendal Roué f605e049fd Rename TypedRequest to FetchRequest, drop Request 2018-02-26 13:12:33 +01:00
Gwendal Roué 2289ed9d95 Cleanup Jazzy documentation from most redundant definitions and experimental APIs 2018-01-21 16:57:43 +01:00
Gwendal Roué 8a213af2ab Cleanup & whitespace 2017-10-30 12:25:12 +01:00
Gwendal Roué a4a05b1f0a Introduce DatabaseValueCursor, NullableDatabaseValueCursor 2017-08-25 05:54:37 +02:00
Gwendal Roué 8ccc23333d Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor. 2017-08-23 08:16:30 +02:00
Gwendal Roué 06a6c982aa SE-0148 2017-08-18 14:22:14 +02:00
Gwendal Roué 7f64abe820 Identify experimental features in the inline documentation 2017-06-20 07:54:19 +02:00
Gwendal Roué 59962e5e88 Identify experimental features in the inline documentation 2017-06-20 07:54:19 +02:00
Gwendal Roué 10e669423f Use the dbValue identifier for variables of type DatabaseValue 2017-06-01 08:35:14 +02:00
Gwendal Roué 1799fe1ff9 Consistently crash for all failed conversions from DatabaseValue 2017-05-22 13:51:39 +02:00
Gwendal Roué dae4ae1c6b Reduce internal coupling 2017-04-22 11:12:43 +02:00
Gwendal Roué c8023adff1 Cleanup 2017-04-20 14:49:08 +02:00
Gwendal Roué 62d19c9d11 Xcode8.3 WIP 2017-03-28 08:02:08 +02:00
Gwendal Roué f2bb8bb8af Remove DatabaseValue.value() 2017-03-24 20:05:02 +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é cb81e50f71 Request.adapted(_:) 2016-12-11 21:07:52 +01:00
Gwendal Roué f6513932b0 Documentation 2016-12-09 08:48:26 +01:00
Gwendal Roué cb08660a78 Rename FetchRequest -> Request 2016-12-08 13:56:05 +01:00
Gwendal Roué 74e89c542a Cleanup 2016-12-07 18:45:14 +01:00
Gwendal Roué 095778cf0f Documentation 2016-11-30 10:53:57 +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é 527aed0ea3 Documentation 2016-11-29 14:17:41 +01:00
Gwendal Roué a8e266377c Documentation 2016-11-29 12:02:29 +01:00
Gwendal Roué 5e2dc95331 DatabaseValueConvertible.fetchOne(): avoid double DatabaseValue conversion 2016-11-28 08:46:57 +01:00
Gwendal Roué b85a8b8b0b #147: DatabaseValueConvertible.fetchOne() can throw conversion errors 2016-11-27 18:21:04 +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é 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é 2eb190dbbb Base DatabaseSequence on DatabaseCursor (addresses #147) 2016-11-26 00:56:37 +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é 5a572b25a0 Refactor the query interface types to enhance extensibility 2016-09-27 23:11:21 +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é 00a1eebf60 Swift 3 Grand Renaming: SQLColumn -> Column 2016-08-07 10:38:24 +02:00
Gwendal Roué 7ea2d7d1ab Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
	GRDB/Core/DatabaseValueConvertible.swift
2016-07-22 10:08:48 +02:00
Gwendal Roué 8ecfb872b6 Simplify DatabaseValueConvertible.sqlLiteral 2016-07-22 10:01:36 +02:00