Gwendal Roué
|
6dd4f1c666
|
More DatabaseDateComponents parsing tests
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
4415681c92
|
SQLiteDateParser: don't parse garbage into nanoseconds
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
5a0425a23c
|
SQLiteDateParser: optimize nanoseconds parsing
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
8729085528
|
Add a sanity check
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
88cbbf5c5e
|
Add missing imports (should fix travis issues)
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
6816bceed0
|
No need for useScanfStrategy any longer
|
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 |
|
Gwendal Roué
|
82482bdbf7
|
Date adopts StatementColumnConvertible
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
062f916607
|
Documentation
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
2b73c4f348
|
Check useScanfStrategy in DatabaseDateComponents.init(sqliteStatement:index:)
...so that we can eventually compare gains
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
54b2135b74
|
DatabaseDateComponents adopts StatementColumnConvertible
We'll need benchmarks to evaluate the gain, here
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
bf3b4e7e02
|
SQLiteDateParser: parse C strings
Since the goal of this PR is efficiency, we'll soon parse Date and
DatabaseDateComponents right from raw SQLite buffers.
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
ad8b80bafd
|
(whitespace)
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
06476bc6fe
|
SQLiteDateParser.components(from:) is not public
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
0616209e58
|
SQLiteDateParser: no more static methods
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
415f2971e5
|
SQLiteDateParser: use withUnsafeMutablePointer instead of allocations
OK, not really: the nanosecond components remains in the heap.
But we may find a way to put 11 chars on the stack.
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
3a7b2cc4a2
|
SQLiteDateParser: get rid of the mutex
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
726e40984a
|
Add SQLiteDateParser.swift to GRDBCustom and GRDBCipher
... so that all GRDB flavors can use the new technique.
GRDB has three distinct projects since #282.
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
63a68978f0
|
truncate nanosecond precision to 3 sig figs
|
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
|
36ac5fa53e
|
truncate date/time strings that include seconds precision beyond the nanosecond scale
|
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 |
|
Matt Greenfield
|
70190e2a23
|
not all nanosecond fractions have 3 sig figs, so can't hard code the acceptable string lengths
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
2682dae34b
|
0.123 is not the same thing as 0.000123
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
3a1e695a39
|
fractions of seconds are not the same thing as integer counts of nanoseconds
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
604f80f6fa
|
differentiate between SS and SS.SSS formats
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
5c0b88eb82
|
return correct Format for partial date/time combinations
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
7e39fbaba0
|
add SQLiteDateParser to project file
|
2018-06-07 08:36:29 +02:00 |
|
Matt Greenfield
|
815424770b
|
initial scanf() based date string parser
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
f1baa0503f
|
#339 follow-up: extend the thank you notice :-)
|
2018-04-23 14:46:12 +02:00 |
|
Gwendal Roué
|
9d8015925d
|
Merge pull request #339 from kluufger/patch-1
fix small typo in readme
|
2018-04-23 14:44:04 +02:00 |
|
kluufger
|
16513dc387
|
as -> at
|
2018-04-23 11:51:16 +00:00 |
|
kluufger
|
4804f78042
|
datase -> database
|
2018-04-23 11:20:47 +00:00 |
|
kluufger
|
eae2c38e23
|
sharedApplication() -> shared
|
2018-04-23 11:06:17 +00:00 |
|
kluufger
|
7ffc2faa9a
|
uppercase -> uppercased since later it's called as uppercased
|
2018-04-23 11:00:23 +00:00 |
|
kluufger
|
6f03d51390
|
fix link
|
2018-04-23 07:18:32 +00:00 |
|
kluufger
|
3aa5719600
|
identity -> identify
|
2018-04-22 21:01:12 +00:00 |
|
kluufger
|
70e6454c38
|
fix typo
|
2018-04-22 19:49:06 +00:00 |
|
kluufger
|
3c290ed6e2
|
case-unsensitive -> case-insensitive
|
2018-04-22 15:59:17 +00:00 |
|
kluufger
|
85849a889f
|
parent -> parents
not sure about this one, where do `(c, d)` come from?
|
2018-04-22 15:42:04 +00:00 |
|
kluufger
|
4993198266
|
no need for the ellipses
|
2018-04-22 15:38:05 +00:00 |
|
kluufger
|
ee7b8f74d7
|
update db.create(table: "example")
|
2018-04-22 15:35:50 +00:00 |
|
kluufger
|
8fd321f823
|
add .unique() to email column
|
2018-04-22 15:12:46 +00:00 |
|
kluufger
|
0526994603
|
one more
|
2018-04-22 14:55:51 +00:00 |
|
kluufger
|
0688305f86
|
fix small typo in readme
|
2018-04-22 14:44:32 +00:00 |
|
Gwendal Roué
|
65b3ba1d12
|
TODO
|
2018-04-04 09:49:38 +02:00 |
|
Gwendal Roué
|
91b574e153
|
v2.10.0
v2.10.0
|
2018-03-30 08:32:18 +02:00 |
|