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é
|
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 |
|
Matt Greenfield
|
63a68978f0
|
truncate nanosecond precision to 3 sig figs
|
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
|
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
|
815424770b
|
initial scanf() based date string parser
|
2018-06-07 08:36:29 +02:00 |
|
Gwendal Roué
|
85d3c584ef
|
Swift 4.1 compatibility (SE-0184 , SE-0187)
|
2018-03-12 18:20:10 +01:00 |
|
Gwendal Roué
|
247cbdd0d0
|
Date and NSDate interpret database numbers as unix timestamps.
|
2017-09-05 08:58:17 +02:00 |
|
Gwendal Roué
|
06a8c8b940
|
GRDB is now able to store and load zero-length blobs.
|
2017-09-03 10:09:00 +02:00 |
|
Gwendal Roué
|
2785e69fc1
|
Data adopts StatementColumnConvertible
|
2017-08-29 19:27:47 +02:00 |
|
Gwendal Roué
|
8ccc23333d
|
Replace DatabaseCursor with new concrete cursors RowCursor, StatementColumnCursor, NullableStatementColumnCursor, and StatementCursor.
|
2017-08-23 08:16:30 +02:00 |
|
Gwendal Roué
|
c5da564fb3
|
Use built-in SQLite3 module when available
|
2017-08-19 15:21:44 +02:00 |
|
Gwendal Roué
|
dc75ca4caf
|
SE-0166
|
2017-08-18 14:22:14 +02:00 |
|
Gwendal Roué
|
cfd2d80b78
|
Fix typo
|
2017-07-30 15:22:13 +02:00 |
|
Gwendal Roué
|
0eb51e3e8b
|
Int8, Int16, UInt, UInt8, UInt16, UInt32, UInt64 adopt DatabaseValueConvertible and StatementColumnConvertible
|
2017-07-29 12:58:35 +02:00 |
|
Gwendal Roué
|
60e6c7d250
|
Remove DatabaseCoder
|
2017-06-20 07:54:19 +02:00 |
|
Gwendal Roué
|
973f38727d
|
More Xcode-9 fixes
|
2017-06-09 06:44:26 +02:00 |
|
David Hart
|
deaac5808d
|
Make the bug-fix conditional to continue building on 3.1
|
2017-06-09 06:44:26 +02:00 |
|
David Hart
|
22dc01610e
|
Fix compilation with Xcode 9 in compatibilty mode
|
2017-06-09 06:44:26 +02:00 |
|
Gwendal Roué
|
10e669423f
|
Use the dbValue identifier for variables of type DatabaseValue
|
2017-06-01 08:35:14 +02:00 |
|
Gwendal Roué
|
63b3b4225a
|
Rename package to GRDB, and rename SQLite module to CSQLite
|
2017-04-11 13:22:26 +02:00 |
|
Andrey Fidrya
|
1751fb38e5
|
SPM support
|
2017-04-08 21:32:58 +03:00 |
|
Gwendal Roué
|
62d19c9d11
|
Xcode8.3 WIP
|
2017-03-28 08:02:08 +02:00 |
|
Gwendal Roué
|
5454e43bc4
|
Use Int(exactly:) and Int32(exactly:) initializers
|
2017-03-18 17:00:06 +01:00 |
|
Gwendal Roué
|
6bcab179d1
|
Classify all try! and fatalError into TODO, Programmer Error, or GRDB bug that needs to be fixed.
|
2016-11-30 08:56:45 +01:00 |
|
Gwendal Roué
|
527aed0ea3
|
Documentation
|
2016-11-29 14:17:41 +01:00 |
|
Gwendal Roué
|
ac6c7f6a35
|
#147: fetchAll() and fetchOne() can now throw database errors.
|
2016-11-26 22:38:40 +01:00 |
|
Gwendal Roué
|
21c41fb145
|
availability cleanup
|
2016-11-05 14:37:36 +01:00 |
|
Gwendal Roué
|
628c375b8c
|
Documentation
|
2016-10-10 15:31:05 +02:00 |
|
Gwendal Roué
|
591197422d
|
Prefer flatMap to guard when chaining values
|
2016-10-08 16:56:39 +02:00 |
|
Gwendal Roué
|
027b1f711c
|
URL, UUID and Date now adopt DatabaseValueConvertible through NSURL, NSUUID and NSDate, thanks to the new support for Foundation's ReferenceConvertible.
|
2016-10-08 16:54:32 +02:00 |
|
Gwendal Roué
|
5a572b25a0
|
Refactor the query interface types to enhance extensibility
|
2016-09-27 23:11:21 +02:00 |
|
Gwendal Roué
|
a8b067885f
|
Merge branch 'master' of github.com:groue/GRDB.swift into Swift3
Conflicts:
DemoApps/GRDBDemoiOS/GRDBDemoiOS.xcodeproj/project.pbxproj
GRDB/Core/Database.swift
README.md
TODO.md
|
2016-09-08 08:37:58 +02:00 |
|