Gwendal Roué
|
1f50b4fefe
|
Integrate SQLCipher as a CocoaPod
|
2019-04-19 08:33:19 +02:00 |
|
Gwendal Roué
|
403c4a894f
|
Apply lovely advice from @glessard
|
2019-03-06 18:18:15 +01:00 |
|
Gwendal Roué
|
0fe7db2694
|
Assume NSUUID.fromDatabaseValue no longer needs special care in Release configuration, since we target Xcode 10+ now
|
2019-02-28 13:28:06 +01:00 |
|
Gwendal Roué
|
746c22e950
|
@inlinable FastDatabaseValueCursor and FastNullableDatabaseValueCursor
|
2019-02-23 14:28:44 +01:00 |
|
Gwendal Roué
|
db67d3840b
|
Principle of least astonishment: rrename argument label rawSQL to sql
|
2019-02-17 13:28:41 +01:00 |
|
Gwendal Roué
|
c546c578ce
|
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
|
2019-02-17 13:28:40 +01:00 |
|
Gwendal Roué
|
59162d93de
|
Rename Database.execute(_:String) to Database.execute(rawSQL:String)
|
2019-02-17 13:27:54 +01:00 |
|
Gwendal Roué
|
8cd49082ec
|
SE-0205 withUnsafePointer(to:_:) and withUnsafeBytes(of:_:) for immutable values
|
2019-02-09 09:56:12 +01:00 |
|
Gwendal Roué
|
fb8946254d
|
Swift 5: update calls to Data.withUnsafeBytes
|
2019-02-08 08:22:23 +01:00 |
|
Gwendal Roué
|
91061ee669
|
Remove redundant public modifiers
|
2019-02-08 05:27:50 +01:00 |
|
Gwendal Roué
|
a230fe400d
|
Availability checks: assume iOS >= 9.0
|
2019-02-07 08:52:38 +01:00 |
|
Gwendal Roué
|
f159927724
|
SE-0075
|
2018-08-26 12:07:19 +02:00 |
|
Gwendal Roué
|
209b3d0d37
|
Fix SPM and -O builds
|
2018-08-20 23:32:38 +02:00 |
|
Gwendal Roué
|
13f3e5ec0d
|
Remove useless conversions from Int to Int32
|
2018-08-20 21:14:32 +02:00 |
|
Gwendal Roué
|
fb209d8805
|
Decode UUID and NSUUID from both blobs and strings
|
2018-08-20 21:13:58 +02:00 |
|
Gwendal Roué
|
eba21d3371
|
Oh men of little faith!
|
2018-08-15 16:55:12 +02:00 |
|
Gwendal Roué
|
0b77d0d745
|
Better feedback for conversion errors from StatementColumnConvertible
|
2018-08-15 16:10:51 +02:00 |
|
Gwendal Roué
|
1c66ad4aad
|
Restore GRDB/Core/Support/Foundation/Data.swift
because Data belongs to Foundation, not to the Standard Library.
Remove `import Foundation` from StandardLibrary.swift
|
2018-08-15 12:05:16 +02:00 |
|
Gwendal Roué
|
4b7f17dbfa
|
Merge remote-tracking branch 'origin/development' into rotacloud
|
2018-08-15 05:12:28 +02:00 |
|
Vlad Alexa
|
76f5adf944
|
moved the extension to Swift.Data to follow the extension to Swift.String in the StandardLibrary.swift,
added case .blob(let data): return String(data: data, encoding: .utf8) to String.fromDatabaseValue
fixed tests
|
2018-08-14 15:04:07 +01:00 |
|
Angus Muller
|
8c06e7bff5
|
Detached rows string to data and tests
|
2018-08-14 11:16:47 +01:00 |
|
Gwendal Roué
|
9f2058f6d9
|
Fix DatabaseValueConvertible implementation for Decodable types that need a single-value container
|
2018-08-10 05:01:30 +02:00 |
|
Gwendal Roué
|
cbda1f9211
|
Fix DatabaseValueConvertible implementation for Decodable types that need a single-value container
They used to crash on decoding errors
|
2018-08-10 04:52:23 +02:00 |
|
Gwendal Roué
|
bcc45dc076
|
no more throwing conversion methods, and refactor ValueConversionDebuggingInfo
|
2018-08-09 08:51:50 +02:00 |
|
Gwendal Roué
|
f8de01779c
|
Cleanup
|
2018-08-06 13:40:05 +02:00 |
|
Gwendal Roué
|
1c811a61ca
|
improve value conversion diagnostics
|
2018-08-06 13:40:05 +02:00 |
|
Gwendal Roué
|
ead89420c4
|
Avoid undefined behavior (UnsafePointer documentation is scary)
|
2018-05-31 17:37:46 +02:00 |
|
David Hart
|
d601e06f25
|
Fix buffer overflow in vsscanf date parsing
|
2018-05-31 17:07:23 +02:00 |
|
Florent Pillet
|
c0bd8ce917
|
Rolled back to previous NSUUID extension as compiler freaks out on a more modern implementation
|
2018-05-20 14:37:59 +02:00 |
|
Florent Pillet
|
df8887be05
|
Fix NSUUID compilation issue (now using more Swift code)
|
2018-05-20 00:27:02 +02:00 |
|
Florent Pillet
|
55472c2d7f
|
Main framework compiles on Linux
|
2018-05-19 18:52:35 +02:00 |
|
Florent Pillet
|
2de040a6f1
|
Use String(format: ...)
... instead of `NSString(format: ...) as String`
|
2018-05-12 15:39:59 +02:00 |
|
Gwendal Roué
|
c1c3233ba2
|
Remove two useless .init (thank you Xcode autocomplete)
|
2018-05-07 19:23:33 +02:00 |
|
Gwendal Roué
|
4e57bf5a0e
|
Fix a youth error: DatabaseDateComponents initializer from DateComponents is no longer failable
|
2018-04-21 15:27:21 +02:00 |
|
Gwendal Roué
|
6c5d6ba631
|
SQLiteDateParser: tighten vsscanf format
|
2018-04-21 10:37:03 +02:00 |
|
Gwendal Roué
|
1311f6c87c
|
SQLiteDateParser: fix nanosecond parsing
|
2018-04-21 10:17:07 +02:00 |
|
Gwendal Roué
|
632bce5521
|
SQLiteDateParser: don't parse garbage into nanoseconds
|
2018-04-20 19:41:34 +02:00 |
|
Gwendal Roué
|
316d28746b
|
SQLiteDateParser: optimize nanoseconds parsing
|
2018-04-20 19:26:42 +02:00 |
|
Gwendal Roué
|
9efe4a6efa
|
Add a sanity check
|
2018-04-20 19:18:46 +02:00 |
|
Gwendal Roué
|
85fbf64068
|
Add missing imports (should fix travis issues)
|
2018-04-20 19:17:24 +02:00 |
|
Gwendal Roué
|
282255b841
|
No need for useScanfStrategy any longer
|
2018-04-20 19:14:58 +02:00 |
|
Gwendal Roué
|
266040747e
|
Date adopts StatementColumnConvertible
|
2018-04-20 18:42:12 +02:00 |
|
Gwendal Roué
|
11a4a6acbd
|
Documentation
|
2018-04-20 18:41:58 +02:00 |
|
Gwendal Roué
|
c70689fe54
|
Check useScanfStrategy in DatabaseDateComponents.init(sqliteStatement:index:)
...so that we can eventually compare gains
|
2018-04-20 18:34:19 +02:00 |
|
Gwendal Roué
|
936b31f1f0
|
DatabaseDateComponents adopts StatementColumnConvertible
We'll need benchmarks to evaluate the gain, here
|
2018-04-20 14:04:12 +02:00 |
|
Gwendal Roué
|
8915672ce5
|
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-04-20 13:51:20 +02:00 |
|
Gwendal Roué
|
0640f90fc1
|
(whitespace)
|
2018-04-20 13:32:50 +02:00 |
|
Gwendal Roué
|
d1a0e8d906
|
SQLiteDateParser.components(from:) is not public
|
2018-04-20 13:31:57 +02:00 |
|
Gwendal Roué
|
e9a668ca56
|
SQLiteDateParser: no more static methods
|
2018-04-20 13:31:35 +02:00 |
|
Gwendal Roué
|
27194c802d
|
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-04-20 13:30:26 +02:00 |
|