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
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é
b252c689df
Merge pull request #330 from groue/GRDB3-RemovePATs
...
Expressions are no longer PATs
2018-04-11 13:08:46 +02:00
Gwendal Roué
c34380cf5c
SQLExpression and SQLSelectable are no longer PATs
2018-04-11 08:19:15 +02:00
Gwendal Roué
75ab9d615c
Merge pull request #329 from groue/GRDB3-RequestDerivation
...
Introduce request derivation protocols
2018-04-11 08:04:30 +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é
64899e5a39
Introduce SelectionRequest, FilteredRequest, AggregatingRequest, and OrderedRequest.
...
Those request protocols allow types that are not QueryInterfaceRequest to expose the same derivation API. This is a necessary step towards associations.
2018-04-10 13:44:23 +02:00
Gwendal Roué
80889dc9d2
Merge pull request #328 from groue/GRDB3-DatabaseRequest
...
Allow observation of complex fetching strategies
2018-04-10 12:50:37 +02:00