Gwendal Roué
bd2f17ee10
Fixes needed by DatabasePool/Writer.writeWithoutTransaction
2018-04-12 07:58:01 +02:00
Gwendal Roué
563a4d5c71
Introduce DatabaseWriter.writeWithoutTransaction
2018-04-11 20:03:18 +02:00
Gwendal Roué
78e6241d16
DatabaseWriter.write now guarantees that eventual concurrent readers don't see any changes until all changes are executed. DatabasePool.write thus wraps changes in a transaction.
2018-04-11 20:03:18 +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é
07a1d4d1b8
Database.rollback: add missing dispatch queue check
2018-04-11 13:21:56 +02:00
Gwendal Roué
9c6b48980c
Database.isInsideTransaction: add missing dispatch queue check
2018-04-11 13:18:34 +02:00
Gwendal Roué
79c7dd03a5
[Whitespace]
2018-04-11 13:10:15 +02:00
Gwendal Roué
c34380cf5c
SQLExpression and SQLSelectable are no longer PATs
2018-04-11 08:19:15 +02:00
Gwendal Roué
03f5a83cbf
Introduce and DatabaseRequest and SelectStatementRequest on top of FetchRequest
2018-04-08 12:08:51 +02:00
Gwendal Roué
2dfbe8e5f2
Prevent snapshot creation from within a transaction
2018-03-31 15:56:42 +02:00
Gwendal Roué
d24f79ee4d
Merge branch 'master' into GRDB3
2018-03-31 14:36:43 +02:00
Gwendal Roué
4ee9580d31
Remove redundant conformance of DatabaseValue to SQLExpressible
2018-03-29 15:31:22 +02:00
Gwendal Roué
0d7f392bcd
Database.isGRDBInternalTable(_:)
2018-03-15 20:04:50 +01:00
Gwendal Roué
07b944039c
Database.isSQLiteInternalTable(_:)
2018-03-15 19:52:44 +01:00
Gwendal Roué
95933e93dd
Fix SQLRequest inline documentation
2018-03-12 23:03:46 +01:00
Gwendal Roué
1cbe60a13f
Better checks for Swift < 4.1 (thanks @hartbit!)
2018-03-12 18:33:06 +01:00
Gwendal Roué
a75e519294
SE-0185: let Swift 4.1 generate as much Equatable and Hashable conformance as possible
2018-03-12 18:20:10 +01:00
Gwendal Roué
75d5c2a39f
SE-0187: deprecate Cursor.flatMap in favor of Cursor.compactMap
2018-03-12 18:20:10 +01:00
Gwendal Roué
85d3c584ef
Swift 4.1 compatibility (SE-0184 , SE-0187)
2018-03-12 18:20:10 +01:00
Gwendal Roué
dbde432948
Remove deprecated APIs
2018-02-28 08:35:07 +01: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é
4faa9964bd
Make AnyCursor final
2018-02-27 08:15:49 +01:00
Gwendal Roué
15a0ea79b0
Drop IteratorCursor, use AnyCursor instead
2018-02-27 08:11:48 +01:00
Gwendal Roué
769c67e7d3
FetchRequest.adapted(_:) in not experimental
2018-02-26 19:34:16 +01:00
Gwendal Roué
f605e049fd
Rename TypedRequest to FetchRequest, drop Request
2018-02-26 13:12:33 +01:00
Gwendal Roué
b4922f60a2
SE-0185: let Swift 4.1 generate as much Equatable and Hashable conformance as possible
2018-02-25 09:24:23 +01:00
Gwendal Roué
b0e126f29d
SE-0187: deprecate Cursor.flatMap in favor of Cursor.compactMap
2018-02-25 09:24:23 +01:00
Gwendal Roué
d8c411ad52
Swift 4.1 compatibility (SE-0184 , SE-0187)
2018-02-25 09:24:23 +01:00
Gwendal Roué
dbfbe30749
DatabaseSnapshot RAII
2018-02-24 17:15:53 +01:00
Gwendal Roué
76561a567f
Introduce DatabaseSnapshot
2018-02-24 07:37:26 +01:00
Gwendal Roué
7dc008db8b
Expose Database.beginTransaction(), commit(), rollback(). New Configuration.allowsUnsafeTransactions flag. New fatal error when a database access block ends with a transaction left opened.
2018-02-23 14:14:05 +01:00
Gwendal Roué
f2d9f50930
CHANGELOG
2018-02-23 13:10:40 +01:00
Gwendal Roué
b9af7e6a25
Update ColumnInfo.primaryKeyIndex documentation
2018-02-23 12:55:27 +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é
79ed15c38c
Deprecate Database.columnCount(in:) in favor of Database.columns(in:). Update doc and changelog
2018-02-22 14:00:19 +01:00
Gwendal Roué
ae3319e9f9
Make ColumnInfo public (asked by @freak4pc)
2018-02-22 13:20:41 +01:00
Gwendal Roué
5112cb24f5
Expose EmptyRowAdapter, and ScopeAdapter(base:scopes:)
2018-02-22 12:38:03 +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é
bd694cbc53
Cleanup
2018-02-22 08:50:35 +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é
fcfa044320
Parts of Cursor implementation are derived from Swift.org
2018-01-28 18:56:40 +01:00
Gwendal Roué
f95658e7ce
Remove convenience cursor types from reference documentation
...
Those types bloat the documentation for no real value: DropFirstCursor, DropWhileCursor, EnumeratedCursor, FilterCursor, FlattenCursor, MapCursor, PrefixCursor, PrefixWhileCursor
2018-01-28 17:13:53 +01:00
Gwendal Roué
2c16fcaa99
Cursor cleanup
2018-01-28 17:13:52 +01:00
Gwendal Roué
7c16ffcdf8
Cursor.joined(separator:String)
2018-01-28 17:13:51 +01:00