Gwendal Roué
d4d0aed3ae
Simplify jazzy documentation
2018-08-25 16:04:50 +02:00
Gwendal Roué
ab98081e7b
Don't initialize PersistenceContainer inside RecordEncoder
2018-08-25 15:32:57 +02:00
Gwendal Roué
ae66563654
Documentation + test for mixed arguments
2018-08-23 14:52:59 +02:00
Gwendal Roué
d3a9667f10
Cleanup
2018-08-22 13:04:24 +02:00
Gwendal Roué
adf5695c20
Move StatementCache to Database+Statements.swift
2018-08-22 12:56:12 +02:00
Gwendal Roué
aa8cb60fad
SQLCipher has learned SQLITE_PREPARE_PERSISTENT
2018-08-22 12:52:13 +02:00
Gwendal Roué
65d99879a8
SQLCipher has learned SQLITE_PREPARE_PERSISTENT
2018-08-22 12:50:07 +02:00
Gwendal Roué
b14f1b9fdc
SQLCipher has learned sqlite3_prepare_v3
2018-08-22 08:53:01 +02:00
Gwendal Roué
46511e507e
Avoid code duplication in Database.setupTrace
...
Also, use sqlite3_trace_v2 with SQLCipher
2018-08-22 08:35:54 +02:00
Gwendal Roué
8f5eee0130
Avoid code duplication in Database.closeConnection
2018-08-22 08:01:26 +02:00
Gwendal Roué
0932e92fb4
Documentation
2018-08-21 19:39:34 +02:00
Gwendal Roué
ad11affd21
ISO8601: don't let user customize the formatter
2018-08-20 23:43:04 +02:00
Gwendal Roué
209b3d0d37
Fix SPM and -O builds
2018-08-20 23:32:38 +02:00
Gwendal Roué
f70e9b3e39
Introduce DatabaseUUIDEncodingStrategy
2018-08-20 21:14:51 +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é
b7273e0a7e
Documentation
2018-08-20 08:05:20 +02:00
Gwendal Roué
f925d7e3d4
Fix SPM
2018-08-19 22:21:03 +02:00
Gwendal Roué
bbf7eb0b73
Make tests platform-independent
2018-08-19 22:15:19 +02:00
Gwendal Roué
ff306c21e2
DatabaseDateEncodingStrategy
2018-08-19 21:54:41 +02:00
Gwendal Roué
d1892c649c
Documentation
2018-08-19 21:41:47 +02:00
Gwendal Roué
f5d0e4db12
Cleanup & documentation
2018-08-19 20:28:47 +02:00
Gwendal Roué
d03b76b7e7
DatabaseDateDecodingStrategy
2018-08-19 19:50:35 +02:00
Gwendal Roué
8af33c4fc9
Introduce select(..., as:)
...
Record.select(..., as: Value.self) is equivalent to Record.select(...).asRequest(of: Value.self).
It somewhat improves the readability of some requests:
Player.select(max(Column("score")), as: Int.self)
2018-08-19 12:25:27 +02:00
Gwendal Roué
1e25debefc
Done
2018-08-19 07:31:09 +02:00
Gwendal Roué
97d77e871b
internal documentation
2018-08-18 20:54:40 +02:00
Gwendal Roué
7cb58cfffc
Major cleanup of FetchableRecord+Decodable
2018-08-18 20:27:07 +02:00
Gwendal Roué
950940dedf
Major cleanup of MutablePersistableRecord+Encodable
2018-08-18 19:02:16 +02:00
Gwendal Roué
ba7cd4f61d
Cleanup
2018-08-18 15:54:01 +02:00
Gwendal Roué
7a3321a5ed
Add missing Foundation import
2018-08-18 15:54:01 +02:00
Gwendal Roué
812975ee7d
Cleanup
2018-08-18 15:54:01 +02:00
Gwendal Roué
47c424cb69
PersistableRecord: customize JSON encoding per column
2018-08-18 15:54:01 +02:00
Gwendal Roué
b35fb6e315
FetchableRecord: customize JSON decoding per column
2018-08-18 15:54:01 +02:00
Gwendal Roué
fdc191bbb4
Inline documentation
2018-08-18 15:54:01 +02:00
Gwendal Roué
b7b8594176
Pass tests for MutablePersistableRecord userInfo customization
2018-08-18 15:54:01 +02:00
Gwendal Roué
513a5a3fb7
More FetchableRecord userInfo customization tests
2018-08-18 15:54:01 +02:00
Gwendal Roué
1a3638c0ef
FetchableRecord can customize Decoder userInfo
2018-08-18 15:54:01 +02:00
Gwendal Roué
7be6386689
Fix DatabaseQueue.write and unsafeReentrantRead throws/rethrows qualifier.
2018-08-16 08:27:05 +02:00
Gwendal Roué
d7f7a57129
Hide implementation details
2018-08-16 06:42:31 +02:00
Gwendal Roué
2eb0955420
JSON encoding: choose strategies
...
Data: .base64
Date: .millisecondsSince1970
NonConformingFloat: .throw
2018-08-15 18:34:47 +02:00
Gwendal Roué
659db4fdd9
Safer default implementation for RowImpl.copiedRow(_:)
2018-08-15 17:33:05 +02:00
Gwendal Roué
d00421abe0
Restore SPM: add missing Foundation import
2018-08-15 17:17:08 +02:00
Gwendal Roué
eba21d3371
Oh men of little faith!
2018-08-15 16:55:12 +02:00
Gwendal Roué
b47f5864ac
Even better feedback for conversion errors from StatementColumnConvertible
2018-08-15 16:49:07 +02:00
Gwendal Roué
0b77d0d745
Better feedback for conversion errors from StatementColumnConvertible
2018-08-15 16:10:51 +02:00
Gwendal Roué
358225b462
Cleanup, documentation, and preserve coding paths
2018-08-15 13:41:53 +02:00
Gwendal Roué
820673b78b
PersistableRecord+Encodable: make it as robust as FetchableRecord+Decodable
2018-08-15 13:23:58 +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é
0cdc7d81d4
Just some cleanup, nothing new
2018-08-15 11:10:11 +02:00
Gwendal Roué
942b32e5d5
RowSingleValueDecodingContainer performance improvements
...
We switch from column indexing to integer indexing, which is far more efficient. And we can use the improved value decoding methods from #384 .
2018-08-15 10:40:14 +02:00