Commit Graph
786 Commits
Author SHA1 Message Date
Gwendal Roué 729f6bdc6c Tests for joined(operator:) 2018-04-21 17:05:03 +02:00
Gwendal Roué 4e57bf5a0e Fix a youth error: DatabaseDateComponents initializer from DateComponents is no longer failable 2018-04-21 15:27:21 +02:00
Gwendal Roué 223d0a3fd3 Merge remote-tracking branch 'origin/development' into GRDB3 2018-04-21 15:20:36 +02:00
Gwendal Roué 219f96a11a More DatabaseDateComponents parsing tests 2018-04-21 10:16:49 +02:00
Gwendal Roué 9e380e5fea Cleanup 2018-04-20 19:14:32 +02:00
Gwendal Roué f12495b24a New DateParsingTests in GRDBOSXPerformanceTests 2018-04-20 19:06:02 +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é 7e260cf537 Update tests for new Row.scopes view 2018-04-19 14:41:49 +02:00
Matt Greenfield 7320f88066 Revert "fix the tests to expect less nanosecond precision loss"
This reverts commit eba5df1fcc.
2018-04-17 15:14:18 +07:00
Matt Greenfield bde72e562e Revert "permit precision loss down to 3 sig figs"
This reverts commit 3bcc5b8064.
2018-04-17 15:14:09 +07:00
Matt Greenfield 3bcc5b8064 permit precision loss down to 3 sig figs 2018-04-17 13:20:11 +07:00
Matt Greenfield eba5df1fcc fix the tests to expect less nanosecond precision loss 2018-04-17 12:57:59 +07: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é ea3f22c8a4 Fix tests that were failing now that DatabaseQueue.inDatabase runs inside a transaction 2018-04-13 18:07:24 +02:00
Gwendal Roué d78479e4af [WIP] DatabaseQueue.inDatabase runs inside a transaction 2018-04-13 08:56:03 +02:00
Gwendal Roué 267371ba90 Tests that DatabasePool.write opens a transaction 2018-04-13 08:20:17 +02:00
Gwendal Roué bc244802c0 Update tests for DatabasePool/Writer.writeWithoutTransaction 2018-04-12 07:58:23 +02:00
Gwendal Roué 563a4d5c71 Introduce DatabaseWriter.writeWithoutTransaction 2018-04-11 20:03:18 +02:00
Gwendal Roué fa68b62be1 Improve Row.description & Row.debugDescription 2018-04-11 13:39:44 +02:00
Gwendal Roué b9333fab34 Update a few tests that have been broken by 64899e5a39.
(Some expressions which were not safely wrapped inside parenthesis now are wrapped inside parenthesis)
2018-04-10 13:45:31 +02:00
Gwendal Roué 2dfbe8e5f2 Prevent snapshot creation from within a transaction 2018-03-31 15:56:42 +02:00
Gwendal Roué c3f9c75b3c Rename databaseEqual to databaseEquals 2018-03-31 14:53:22 +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é 3bbc17fe4a Rename "record changes tracking" to "record comparison" in order to avoid confusion with database changes tracking performed by database observation 2018-02-28 08:58:27 +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é 08a08cd74f Rename MutablePersistable to EncodableRecord 2018-02-27 18:46:32 +01:00
Gwendal Roué 639de6ca11 Rename TableMapping to TableRecord 2018-02-27 13:28:29 +01:00
Gwendal Roué ba6a026cdc Rename RowConvertible to DecodableRecord 2018-02-27 13:17:51 +01:00
Gwendal Roué 15a0ea79b0 Drop IteratorCursor, use AnyCursor instead 2018-02-27 08:11:48 +01:00
Gwendal Roué 3bbcb8151d Update JoinSupportTests for FetchRequest 2018-02-26 22:34:46 +01:00
Gwendal Roué f605e049fd Rename TypedRequest to FetchRequest, drop Request 2018-02-26 13:12:33 +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é 4f8f0e0bf3 Fix Xcode9.3 warnings 2018-02-25 09:23:05 +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