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é
e5cd3a8994
SE-0206
2018-08-30 16:34:30 +02:00
Gwendal Roué
566f42e8d0
Remove useless conversion contexts
2018-08-26 14:07:36 +02:00
Gwendal Roué
659db4fdd9
Safer default implementation for RowImpl.copiedRow(_:)
2018-08-15 17:33:05 +02:00
Gwendal Roué
b47f5864ac
Even better feedback for conversion errors from StatementColumnConvertible
2018-08-15 16:49:07 +02:00
Gwendal Roué
d9dd293d7f
A really difficult cleanup process
2018-08-14 08:33:06 +02:00
Gwendal Roué
e49e2db571
Optimize decoding of StatementColumnConvertible values in Decodable records
...
This is the real final touch for #384 , after all
2018-08-13 21:17:52 +02:00
Gwendal Roué
66541922a4
More cleanup
2018-08-12 12:27:47 +02:00
Gwendal Roué
80fe7f87b1
More cleanup
2018-08-12 11:39:48 +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é
1dcb42c540
wip: debug info for no such column errors
2018-08-11 13:03:11 +02:00
Gwendal Roué
d836fffd08
wpi: debug info for no such column errors
2018-08-10 08:52:32 +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é
e9e1fa85c6
Cleanup
2018-08-06 13:40:05 +02:00
Gwendal Roué
f8de01779c
Cleanup
2018-08-06 13:40:05 +02:00
Gwendal Roué
84c53ef6b9
improve value conversion diagnostics more
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é
f2ae44384f
Rename SQLColumnExpression to ColumnExpression
2018-04-22 18:13:47 +02:00
Gwendal Roué
29b364d5cb
Introduce SQLColumnExpression
2018-04-22 14:56:40 +02:00
Gwendal Roué
e45642b6c1
Cleanup
2018-04-19 21:48:12 +02:00
Gwendal Roué
b550e2bfd5
Cleanup
2018-04-19 21:45:40 +02:00
Gwendal Roué
4b3854d05d
Finally, the meat: perform breadth-first search in let record = row[key], and in FetchableRecord & Decodable
2018-04-19 20:46:58 +02:00
Gwendal Roué
0362ae76ea
Rename Row.Scopes to Row.ScopesView. Move breadth-first lookup to a new view, row.scopesTree, of type Row.ScopesTreeView
2018-04-19 20:29:11 +02:00
Gwendal Roué
098c11baf2
Row.Scopes.lookup(_:) performs a breadth-first lookup of a scope name
2018-04-19 19:50:43 +02:00
Gwendal Roué
4e659c550e
Rename RowScopes to Row.Scopes. Harmonize row derivation.
2018-04-19 19:18:02 +02:00
Gwendal Roué
7e260cf537
Update tests for new Row.scopes view
2018-04-19 14:41:49 +02:00
Gwendal Roué
57932235ba
Introduce RowScopes collection, a view of a row's scopes
2018-04-19 09:07:16 +02:00
Gwendal Roué
9a6daedd6d
Cleanup
2018-04-18 07:31:11 +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é
26912e746b
Update documentation for new Row description format
2018-04-11 15:49:16 +02:00
Gwendal Roué
fa68b62be1
Improve Row.description & Row.debugDescription
2018-04-11 13:39:44 +02:00
Gwendal Roué
1a91020a84
After all, FetchableRecord and PersistableRecord
2018-02-27 19:25:49 +01:00
Gwendal Roué
ba6a026cdc
Rename RowConvertible to DecodableRecord
2018-02-27 13:17:51 +01:00
Gwendal Roué
f605e049fd
Rename TypedRequest to FetchRequest, drop Request
2018-02-26 13:12:33 +01:00
Gwendal Roué
aa1f555e05
Drop init(leftJoinedRow:), and expose Row subscripts that return records
2018-02-23 08:08:00 +01:00
Gwendal Roué
c6bbccc02e
Have AdaptedRow go straight to SQLite when possible (avoid DatabaseValue initializer)
2018-02-22 12:23:19 +01:00
Gwendal Roué
93ec4d2515
Remove Row.hasNull(named:String) and Row.hasNull(Column)
2018-02-22 12:00:06 +01:00
Gwendal Roué
c115a035ec
Row.hasNull(atIndex:) goes straight to sqlite3_column_type() when possible
2018-02-22 08:39:14 +01:00
Gwendal Roué
288144f347
splittingRowAdapters(columnCounts:), ScopeAdapter(nestedScopes:), RowConvertible?(leftJoinedRow:), TableMapping.numberOfSelectedColumns(_:), support for nested codable records
2018-02-21 23:15:13 +01:00
Gwendal Roué
3bdfdaa40a
TableMapping.selectionSQL(_:)
2018-02-21 13:51:37 +01:00
Gwendal Roué
22949813af
Row.hasNull(atIndex:), Row.hasNull(named:), Row.hasNull(_:), Row.hasNonNullValue
2018-02-20 14:43:06 +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é
4fe2b2542f
Cleanup
2018-01-18 12:54:02 +01:00
Gwendal Roué
0d236ae32c
Row adopts RandomAccessCollection
2018-01-12 08:18:50 +01:00
Gwendal Roué
8a213af2ab
Cleanup & whitespace
2017-10-30 12:25:12 +01:00