Gwendal Roué
36fba9a79a
TODO: deprecate DatabaseRegion(table:)
...
We have `Table` now, wich is DatabaseRegionConvertible.
This deprecation will revert https://github.com/groue/GRDB.swift/pull/510
2021-12-02 17:21:58 +01:00
Gwendal Roué
6240585a03
Make sure ValueObservation fetches in an isolated transaction
...
Previously, ValueObservation could fetch in a non-isolated way. When an external connection would commit changes, we could fetch inconsistent values. Here we make sure ValueObservation always fetch in an isolated way.
2021-12-02 09:46:02 +01:00
Gwendal Roué
bb2ce74125
Add helper method Database.isolated(readOnly:)
2021-12-02 09:45:28 +01:00
Gwendal Roué
d8b83fba12
improve compilation time
2021-11-18 08:34:59 +01:00
Gwendal Roué
93c4249619
ForeignKeyViolation.databaseError(_:)
2021-11-16 08:51:33 +01:00
Gwendal Roué
ebc8524706
Add missing public qualifiers
2021-11-16 08:45:34 +01:00
Gwendal Roué
ea41f34f3d
Quote table name in raw SQL query
2021-11-16 08:40:16 +01:00
Gwendal Roué
af2d65ef49
Fix Swiftlint warnings
2021-11-07 10:32:00 +01:00
Gwendal Roué
7af3858ff6
More robust DatabasePool.close() test
2021-11-07 08:17:48 +01:00
Gwendal Roué
eb9d0bce58
Documentation
2021-11-07 08:16:58 +01:00
Gwendal Roué
1738ad34cd
Extract the Concurrency Guide
2021-11-06 12:23:54 +01:00
Gwendal Roué
c81a4dbf32
Distinguish "FOREIGN KEY constraint failed" from "FOREIGN KEY constraint violation" errors
2021-11-04 18:44:44 +01:00
Gwendal Roué
127c4e0440
Rename methods that check foreign keys
2021-11-04 18:26:24 +01:00
Gwendal Roué
6193c6aa00
foreignKeyViolations() and checkForeignKeyViolations()
2021-11-04 14:19:11 +01:00
Gwendal Roué
20cb50f52d
Public close() method
2021-10-31 18:12:13 +01:00
Gwendal Roué
6d44c05f3b
DatabasePool.erase() prevents concurrent reads until it has completed
2021-10-13 14:46:47 +02:00
Gwendal Roué
ba88a150c0
Improve inline doc of database access methods
2021-10-11 15:50:06 +02:00
Gwendal Roué
2d4398798a
SE-0299 for DatabaseRegionConvertible.fullDatabase
2021-10-01 11:13:20 +02:00
jason
fbc0ee77bb
Change init to fix Swift error
2021-09-08 13:57:24 -07:00
Gwendal Roué
42045ad8fb
Merge remote-tracking branch 'origin/development' into pr1029
2021-08-29 08:37:13 +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é
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é
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
Scott Berrevoets
4ab7f1cf3e
Add support for encoding as well
2021-08-12 20:12:10 -07: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
Gwendal Roué
57cf9b45b6
Add missing Foundation import for SPM
2021-07-04 19:28:27 +02:00
Gwendal Roué
620eb6f21c
Default DatabaseValueConvertible+Codable implementation uses the JSON format
2021-07-04 17:34:31 +02:00
Gwendal Roué
b5de7a907a
Update link to 0xdead10cc documentation
2021-06-27 15:43:32 +02:00
Gwendal Roué
2ce588ad76
Cached statements from a SQL literal
...
Addresses https://github.com/groue/GRDB.swift/issues/985#issuecomment-859570434
2021-06-19 13:57:53 +02:00