Commit Graph
8949 Commits
Author SHA1 Message Date
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é 9cb1bac2fc Update documentation for scoped rows 2018-04-19 14:46:23 +02:00
Gwendal Roué 33d65e85d8 Update documentation for scoped rows 2018-04-19 14:44:05 +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é 2daba261a2 GRDB3 TODO 2018-04-19 08:09:46 +02:00
Gwendal Roué 9a6daedd6d Cleanup 2018-04-18 07:31:11 +02:00
Matt Greenfield 3b546dedd8 truncate nanosecond precision to 3 sig figs 2018-04-17 15:17:09 +07: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 33066133fc truncate date/time strings that include seconds precision beyond the nanosecond scale 2018-04-17 14:32:33 +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
Matt Greenfield dad163771f not all nanosecond fractions have 3 sig figs, so can't hard code the acceptable string lengths 2018-04-17 12:38:23 +07:00
Matt Greenfield bb59f5e6f7 0.123 is not the same thing as 0.000123 2018-04-17 11:05:47 +07:00
Matt Greenfield 7a1aa88edb fractions of seconds are not the same thing as integer counts of nanoseconds 2018-04-16 19:18:49 +07:00
Gwendal Roué a2c06c1bdb Cleanup 2018-04-16 14:05:36 +02:00
Gwendal Roué 2a2c5a772f Cleanup 2018-04-16 14:05:04 +02:00
Gwendal Roué 969fac5c4b Cleanup 2018-04-16 14:01:54 +02:00
Matt Greenfield b444d376f4 differentiate between SS and SS.SSS formats 2018-04-16 17:39:41 +07:00
Matt Greenfield 59d7909f50 return correct Format for partial date/time combinations 2018-04-16 17:21:00 +07:00
Matt Greenfield f5f8ab5971 add SQLiteDateParser to project file 2018-04-16 16:32:32 +07:00
Matt Greenfield 362c4baeca initial scanf() based date string parser 2018-04-16 14:02:15 +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é c9dc1223dd Harmonize dbQueue.writer with dbPool.writer 2018-04-15 20:14:25 +02:00
Gwendal Roué ba848d2d53 Less TODO 2018-04-15 19:57:36 +02:00
Gwendal Roué 1c9c3d4399 Merge pull request #332 from groue/GRDB3-DatabaseWriterRobustness
Implicit transaction in DatabasePool.write and DatabaseQueue.write
2018-04-15 19:51:52 +02:00
Gwendal Roué 090f872e80 Update documentation: don't mention dbQueue.inDatabase unless necessary 2018-04-15 18:09:34 +02:00
Gwendal Roué 3d9c1a2739 Cleanup 2018-04-15 17:26:37 +02:00
Gwendal Roué c97c260613 Update documentation about transactions 2018-04-15 17:15:13 +02:00
Gwendal Roué a46505e907 Cleanup 2018-04-15 14:30:12 +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é cc136922e5 Typo 2018-04-12 14:07:38 +02:00
Gwendal Roué 02927106ca It looks like documentation wants that DatabaseQueue automatically opens transactions as well... 2018-04-12 14:06:13 +02:00
Gwendal Roué 1275ebc2b1 Layout 2018-04-12 14:02:31 +02:00
Gwendal Roué 2ac2a148c6 Typo 2018-04-12 14:00:19 +02:00
Gwendal Roué 1a5f432ee1 Update documentation for DatabasePool.writeWithoutTransaction 2018-04-12 13:59:10 +02:00
Gwendal Roué 5df4e713b6 GRDB3 TODO 2018-04-12 12:39:29 +02:00
Gwendal Roué 20d2c74f87 Update documentation for DatabasePool.writeWithoutTransaction 2018-04-12 12:02:25 +02:00
Gwendal Roué bc244802c0 Update tests for DatabasePool/Writer.writeWithoutTransaction 2018-04-12 07:58:23 +02:00
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é d08f630a2c Merge pull request #331 from groue/GRDB3-RowDescription
Improve Row descriptions
2018-04-11 20:02:31 +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