Gwendal Roué
e6e2536f6b
Reverse DatabaseColumnDecodingStrategy
...
It does not convert coding keys to columns, but columns to CodingKeys, exactly as JSONDecoder.KeyDecodingStrategy
2021-08-29 13:52:36 +02:00
Gwendal Roué
86e4adf860
Spot a design flaw
2021-08-29 10:08:08 +02:00
Gwendal Roué
427a00582f
Rename keyDecodingStrategy to columnDecodingStrategy
2021-08-29 09:55:06 +02:00
Gwendal Roué
6f024373b3
Fix failing test
2021-08-29 09:51:31 +02:00
Gwendal Roué
e60a31f401
Fix failing test
2021-08-29 09:40:32 +02:00
Gwendal Roué
d567630966
Column decoding strategy only applies to columns
2021-08-29 08:55:39 +02:00
Gwendal Roué
42045ad8fb
Merge remote-tracking branch 'origin/development' into pr1029
2021-08-29 08:37:13 +02:00
Gwendal Roué
0914b56c41
Add mark
2021-08-29 08:31:36 +02:00
Gwendal Roué
33e2c379db
Make it clear that strategies apply to columns only
...
...and not to row scopes or prefetched records
2021-08-28 16:24:53 +02:00
Gwendal Roué
06763e47d2
Share convertToSnakeCase()
2021-08-28 16:05:41 +02:00
Gwendal Roué
5f23d97903
Add the custom strategies
2021-08-28 15:50:34 +02:00
Gwendal Roué
03a8e03a92
Documentation
...
Doc of cases is copied from JSONDecoder.KeyDecodingStrategy and JSONEncoder.KeyEncodingStrategy
2021-08-28 15:48:31 +02:00
Gwendal Roué
987b8a48e5
Key coding strategies transform keys into columns
...
They are not String transformers
2021-08-28 15:41:12 +02:00
Gwendal Roué
ae60de399e
Inline GRDBPrecondition
2021-08-28 14:54:51 +02:00
Gwendal Roué
b06dc5dc77
Do not inline RowDecodingError.valueMismatch creation
2021-08-28 14:54:51 +02:00
Gwendal Roué
c0c8eec75d
Replace _checkedIndex with _checkIndex
...
That's what the stdlib Array does
2021-08-28 14:54:51 +02:00
Gwendal Roué
151a457251
Inline StatementColumnConvertible decoding
2021-08-28 14:53:54 +02:00
Gwendal Roué
0511fec001
SE-0299: enhance access to Column.rowID
2021-08-22 12:42:53 +02:00
Gwendal Roué
48ef691897
Disallow FTS5 column matching against NULL
...
SQLite just throws a syntax error
2021-08-22 11:03:18 +02:00
Ethan Wong
2f3311cd1e
Add match operator in ColumnExpression for FTS5
2021-08-22 16:12:39 +08:00
Gwendal Roué
e2c9734df1
Specialize StatementColumnConvertible cursors
2021-08-21 15:48:07 +02:00
Gwendal Roué
18e9b1b9aa
Specialize StatementColumnConvertible decoding
2021-08-21 14:53:11 +02:00
Gwendal Roué
59c4d42076
Remove test warnings with BUILD_LIBRARY_FOR_DISTRIBUTION
2021-08-21 14:08:46 +02:00
Gwendal Roué
665770c50c
Remove all ABI annotations
2021-08-21 13:14:54 +02:00
Gwendal Roué
f36f4aaf74
Deprecate count(_ counted: SQLSelectable)
2021-08-21 12:44:14 +02:00
Gwendal Roué
2858b803d0
Remove useless <Void> qualifiers
...
SQLRequest and CommonTableExpression are <Row> by default
2021-08-21 12:25:04 +02:00
Gwendal Roué
253c878367
Cleanup
2021-08-17 08:30:51 +02:00
Gwendal Roué
f5b1219549
SQLStatementCursor no longer allocates a copy of the sql C string
...
Based on https://forums.swift.org/t/stable-pointer-into-a-c-string-without-copying-it/51244
2021-08-16 18:59:55 +02:00
Gwendal Roué
98930d7f1d
Merge pull request #1025 from DrawboardLtd/value-observer-reducer-locking
...
Added locking around `reducer` to mitigate Release build crashes.
2021-08-15 14:23:18 +02:00
Gwendal Roué
adc16ea7dc
Protect mutating TextOutputStream with a lock
...
This change addresses https://github.com/groue/GRDB.swift/pull/1025#issuecomment-898894618
2021-08-15 13:03:37 +02:00
Scott Berrevoets
79abf62a47
Fix name and convert Decodables as well
2021-08-14 21:45:35 -07:00
Scott Berrevoets
4ab7f1cf3e
Add support for encoding as well
2021-08-12 20:12:10 -07:00
Scott Berrevoets
cdc7805471
Add option for converting snake case
...
This adds an option to convert column names from snake case to camel
case, similar to how JSONDecoder works. In fact, the implementation here
is largely based on JSONDecoder's implementation.
2021-08-12 20:11:54 -07:00
Renaud Lienhart
7791e300d2
Use the ValueObserver.synchronized() helper
2021-08-06 09:27:39 +10:00
Matt Gallagher
8350dced55
Added locking around reducer to mitigate Release build crashes.
2021-08-06 09:10:29 +10:00
Gwendal Roué
eb6895207e
Remove Swiftlint warnings
2021-07-30 16:14:03 +02:00
Gwendal Roué
dc3fac95db
allStatements() can build statements without any arguments
2021-07-30 14:24:08 +02:00
Gwendal Roué
5cd34da6ca
Use allStatements() from makeStatement()
2021-07-30 08:50:15 +02:00
Gwendal Roué
c9eb67dae8
Database.allStatements(sql:literal:)
...
Addresses #1015
2021-07-29 22:41:49 +02:00
Gwendal Roué
bf601e6810
Merge SelectStatement and UpdateStatement
...
Addresses #1015
2021-07-29 20:20:15 +02:00
Zev Eisenberg
8b060e6b09
Add angle brackets to URLs to make them clickable in Xcode's rendered documentation.
2021-07-20 20:53:58 -04:00
Gwendal Roué
f0a99a9100
Merge pull request #1010 from tternes/tt-add-vacuum-into
...
Add VACUUM INTO Support
2021-07-20 20:15:33 +02:00
Gwendal Roué
6cc45202a0
Enable vacuum(into:) with SQLCipher
2021-07-20 20:02:18 +02:00
Gwendal Roué
c115b6a92d
Explain why vacuum(into:) is not available on DatabaseReader
2021-07-20 19:31:22 +02:00
Thaddeus Ternes
dc40da1ef2
Improvements based on PR feedback
2021-07-19 21:59:43 -05:00
Gwendal Roué
374595d89e
Merge pull request #1009 from kaishin/patch-1
...
Remove extra dot at the end of reference URL
2021-07-19 18:49:23 +02:00
Thaddeus Ternes
7d0c8c6657
Refactor tests, fix inline documentation parameter value
2021-07-12 02:28:49 -05:00
Thaddeus Ternes
ed9fb39982
Add inline documentation
2021-07-12 01:26:34 -05:00
Thaddeus Ternes
b28f75c5a2
Add VACUUM INTO support to DatabaseWriter
2021-07-12 01:19:45 -05:00
Reda Lemeden
1ac364defb
Remove extra dot at the end of reference URL
2021-07-12 02:11:34 +02:00