Commit Graph
757 Commits
Author SHA1 Message Date
Gwendal Roué 6dd4f1c666 More DatabaseDateComponents parsing tests 2018-06-07 08:36:29 +02:00
Gwendal Roué 76dc5e6b89 Cleanup 2018-06-07 08:36:29 +02:00
Gwendal Roué ee39a52069 New DateParsingTests in GRDBOSXPerformanceTests 2018-06-07 08:36:29 +02:00
Matt Greenfield 13d973dde4 Revert "fix the tests to expect less nanosecond precision loss"
This reverts commit eba5df1fcc.
2018-06-07 08:36:29 +02:00
Matt Greenfield 8f5ef76e7e Revert "permit precision loss down to 3 sig figs"
This reverts commit 3bcc5b8064.
2018-06-07 08:36:29 +02:00
Matt Greenfield cda891ca02 permit precision loss down to 3 sig figs 2018-06-07 08:36:29 +02:00
Matt Greenfield ff4447713a fix the tests to expect less nanosecond precision loss 2018-06-07 08:36:29 +02: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é ad0f6de809 Fix Xcode9.3 warnings 2018-03-12 18:20:10 +01:00
Gwendal Roué 9168bac16e Deprecate RecordBox. Introduce changes API on MutablePersistable. Rename Record changes tracking methods. 2018-02-24 16:19:21 +01:00
Gwendal Roué 5e4406e78c Improves documentation (addresses #306) 2018-02-24 07:54:42 +01:00
Gwendal Roué 76561a567f Introduce DatabaseSnapshot 2018-02-24 07:37:26 +01:00
Gwendal Roué 8288f0c751 Add a real-life test for allowsUnsafeTransactions 2018-02-23 19:11:38 +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é 00825748ff Fix ColumnInfo test (it is different with SQLite < 3.7.16) 2018-02-23 12:53:41 +01:00
Gwendal Roué 9a1dc7f292 Cleanup 2018-02-23 08:32:17 +01:00
Gwendal Roué c68fc37959 Cleanup 2018-02-23 08:17:15 +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é 37d7c84bc3 Splitting rows: documentation WIP 2018-02-22 22:30:13 +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é bd694cbc53 Cleanup 2018-02-22 08:50:35 +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é b5d9955442 Tests: setup Database.logError only once (and avoid SQLite misuse) 2018-02-20 13:16:11 +01:00
Gwendal Roué feb5cb35b4 Record.updateChanges now returns whether the record had changes 2018-02-20 13:06:58 +01:00
Gwendal Roué 9f1f51637a Tests for Cursor.joined(separator:String) 2018-01-28 17:13:52 +01:00
Gwendal Roué 7ca582719b Tests for Cursor.reduce(into:_:) 2018-01-28 17:13:51 +01:00
Gwendal Roué ac6b2933a8 Tests for Cursor.max(by:), max(), min(by:), min() 2018-01-28 17:13:50 +01:00
Gwendal Roué acd06a4f5a Tests for Cursor.dropLast() 2018-01-28 17:13:50 +01:00
Gwendal Roué 15fbf02647 Tests for Cursor.dropFirst() 2018-01-28 17:13:49 +01:00
Gwendal Roué 129e178ee0 Tests for Cursor.dropFirst(_:) 2018-01-28 17:13:49 +01:00
Gwendal Roué 1e5caa62a8 Tests for Cursor.prefix(while:) 2018-01-28 17:13:49 +01:00
Gwendal Roué 420ed0764b Tests for Cursor.drop(while:) 2018-01-28 17:13:49 +01:00
Gwendal Roué ce6bbb2885 Tests for Cursor.prefix(_:) 2018-01-28 17:13:48 +01:00
Gwendal Roué dccd456497 Tests for Cursor.dropLast(_:) 2018-01-28 17:13:48 +01:00
Gwendal Roué 520bdd64e6 Tests for Cursor.dropFirst(_:) 2018-01-28 17:13:47 +01:00
Gwendal Roué 69b51ffbd5 Tests for Cursor.dropFirst(_:) 2018-01-28 17:13:47 +01:00
Gwendal Roué 362c40326f Tests for Cursor.suffix(_:) 2018-01-28 17:13:47 +01:00
Gwendal Roué abdc2000c4 Tests for Cursor.prefix(while:) 2018-01-28 17:13:46 +01:00
Gwendal Roué bae8c97df4 Tests for Cursor.drop(while:) 2018-01-28 17:13:46 +01:00
Gwendal Roué 1da85dff58 FTS5Pattern(matchingPrefixPhrase:) 2018-01-26 08:38:11 +01:00
Gwendal Roué 93d4587732 RecordBox 2018-01-20 20:26:36 +01:00
Gwendal Roué 7481b9788a Run truncate optimization tests with and without transaction observer
This topic is sooo touchy...
2018-01-20 20:26:10 +01:00
Gwendal Roué c4ef161a83 Rename Statement.region and Request.region to fetchedRegion 2018-01-17 06:54:10 +01:00
Gwendal Roué 389a7f28c4 Derived requests ought to preserve database region: failing tests 2018-01-16 20:39:13 +01:00
Gwendal Roué 33b5c6c616 Rename DatabaseSelectionInfo to DatabaseRegion 2018-01-16 08:23:08 +01:00
Gwendal Roué a7122ba8bb Unit tests for DatabaseSelectionInfo.isModified methods 2018-01-15 23:09:52 +01:00