5668 Commits
Author SHA1 Message Date
Gwendal Roué 27e94c211d Upgrade SPM test app to v3.0.0 v3.0.0 2018-06-07 13:53:16 +02:00
Gwendal Roué bca4af679e No more reference to the GRDB3 branch 2018-06-07 13:28:30 +02:00
Gwendal Roué cb7f827118 GRDB2MigrationGuide.md no longer refers to GRDB3 branch 2018-06-07 13:26:48 +02:00
Gwendal Roué 1bc4299bfc Fix bug in GRDBDemoiOS 2018-06-07 12:53:24 +02:00
Gwendal Roué 79c788e571 v3.0.0 2018-06-07 12:46:38 +02:00
Gwendal Roué 0125107855 Improve "Good Practices for Designing Record Types" 2018-06-07 11:42:45 +02:00
Gwendal Roué 24694b8b23 Merge branch 'GRDB3' into development 2018-06-07 08:49:36 +02:00
Gwendal Roué 0c79224209 Family gets bigger :-) 2018-06-07 08:39:55 +02:00
Gwendal Roué a88b5dc3df Append #334 to CHANGELOG 2018-06-07 08:36:29 +02:00
Gwendal Roué f259cac51f SQLiteDateParser: tighten vsscanf format 2018-06-07 08:36:29 +02:00
Gwendal Roué fe1146134b SQLiteDateParser: fix nanosecond parsing 2018-06-07 08:36:29 +02:00
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é 30fcd95f1d Change podspec description 2018-06-07 08:31:57 +02:00
Gwendal Roué 4637930027 Improve "Good Practices for Designing Record Types" 2018-06-06 17:09:03 +02:00
Gwendal Roué 729ec6714c Improve "Good Practices for Designing Record Types" 2018-06-06 17:08:42 +02:00
Gwendal Roué b2683eb864 Improve "Good Practices for Designing Record Types" 2018-06-06 17:04:42 +02:00
Gwendal Roué e7bcf7c7db Funny how time you have for tweaking stuff when you're waiting for a watch app to launch... 2018-06-06 16:15:44 +02:00
Gwendal Roué d1c47c3364 Improve "Good Practices for Designing Record Types" 2018-06-06 16:12:21 +02:00
Gwendal Roué 44140cb1db README.md 2018-06-06 15:01:59 +02:00