Gwendal Roué
c0a3e61253
DatabaseRegion is now case-preserving and case-insensitive
2021-04-10 16:27:45 +02:00
Gwendal Roué
c02901b335
Fix canonicalName(_:ofType:)
2021-04-10 16:27:45 +02:00
hlst
de0709163c
Fix a tiny typo
2021-04-05 06:31:56 +08:00
Gwendal Roué
8c872fccfc
End of experiment. But we squeezed a few more cycles :-)
2021-04-04 13:50:17 +02:00
Gwendal Roué
89521a7288
Improve statement binding performance
2021-04-03 14:52:22 +02:00
Gwendal Roué
914ad1b882
Address #945 by running a distinctive query
...
When a user finds this query in the error log, it will be easier for everybody to understand why it happens.
2021-03-27 14:56:08 +01:00
Gwendal Roué
b13922b76e
Database schema cache distinguishes the main from the temp schema
...
Addresses https://github.com/groue/GRDB.swift/pull/946#issuecomment-805756799
2021-03-27 14:50:25 +01:00
Gwendal Roué
051fdb37b6
Rename SQLLiteral to SQL
2021-03-21 13:33:49 +01:00
Gwendal Roué
64f5e6bdca
Always use Decimal(string:) when decoding strings
2021-03-21 12:57:50 +01:00
Gwendal Roué
d9083a7bf5
Support for Foundation.Decimal
2021-03-20 20:11:26 +01:00
Gwendal Roué
e355af3584
Decode NSNumber from textual database values
2021-03-20 17:15:16 +01:00
Gwendal Roué
c9c652dddc
DatabaseMigrator async migrations
2021-03-20 13:25:43 +01:00
Gwendal Roué
5aa1184e68
Database.makeSelectStatement(literal:)
2021-03-18 19:24:24 +01:00
Gwendal Roué
a6f7d9ba86
Database.makeUpdateStatement(literal:) accepts all arguments, or no arguments
2021-03-18 18:48:06 +01:00
Gwendal Roué
fdc47d7158
Database.makeUpdateStatement(literal:)
2021-03-18 17:08:25 +01:00
Gwendal Roué
1f4db99a37
Documentation fix
2021-03-17 20:26:10 +01:00
Gwendal Roué
4c88d792f0
Documentation
2021-03-14 14:13:29 +01:00
Gwendal Roué
77db650464
More SQLLiteral interpolation test
2021-03-14 13:08:10 +01:00
Gwendal Roué
ac436a2770
Make SQLLiteral less painful to use
2021-03-14 11:09:29 +01:00
Gwendal Roué
6e7555514a
More collection initializers from cursors
...
- support for minimumCapacity
- support for Dictionary (cursors with unique keys)
2021-03-12 13:48:25 +01:00
Gwendal Roué
48b6faa45e
Improve documentation of Configuration.prepareDatabase
2021-03-06 13:25:52 +01:00
Gwendal Roué
bac7b6b0e5
Refactor function calls
...
and make it possible to express other DISTINCT aggregates than COUNT: SUM(DISTINCT ...), etc.
2021-03-06 13:25:25 +01:00
Gwendal Roué
37dfd95ae1
Symmetry with StatementColumnConvertible
2021-02-26 19:31:41 +01:00
Gwendal Roué
b834b9876d
Data.fastDecodeNoCopyIfPresent can not fail
2021-02-26 18:51:14 +01:00
Gwendal Roué
7f48e66fdc
Reduce inlined code
2021-02-26 18:50:47 +01:00
Gwendal Roué
b7c57dc7f2
Attempt at clarifying the (complex) decoding api
...
The difficulty is due to fast decoding of StatementColumnConvertible, and non-copied Data, from raw SQLite statement.
We want it to be inlinable, and possible in nested rows.
Added missing tests for nested rows
2021-02-25 20:45:12 +01:00
Gwendal Roué
cb2405a8b9
RowDecodingError
2021-02-21 14:21:04 +01:00
Gwendal Roué
aceaaf24d2
Paranoid: Wrap DatabaseQueue.read in a transaction
...
This guarantees snapshot isolation even in case of external connections
2021-02-20 12:59:27 +01:00
Gwendal Roué
a681ccf2b9
Fix: DatabaseQueue.read is throws, not rethrows
2021-02-20 11:55:19 +01:00
Gwendal Roué
920417beb3
Replace protocols with enums
2021-02-14 18:28:15 +01:00
Gwendal Roué
267bfb29fe
Merge pull request #892 from eburns-vmware/dev/data_passphrase
...
Provide SQLCipher passphrase as Data
2021-01-09 14:33:46 +01:00
Gwendal Roué
4e551c8c6e
Fix Swiftlint errors
2021-01-09 13:09:44 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
ed32e44bc2
DRY
2020-12-23 10:31:16 +01:00
Gwendal Roué
60a9494434
Fix Swiftlint warnings
2020-12-23 10:10:10 +01:00
Gwendal Roué
51991213ef
Stop observing pragma tables
2020-12-23 10:09:00 +01:00
Gwendal Roué
dc16fae72e
Documentation
2020-12-23 10:08:30 +01:00
Gwendal Roué
b485d4d3dc
forSingleResult is no longer mandatory
2020-12-23 10:08:16 +01:00
Gwendal Roué
7634d3f950
Documentation
2020-12-23 09:23:37 +01:00
Gwendal Roué
6abbf82a89
So long, visitor pattern!
2020-12-23 09:02:17 +01:00
Ed Burns
2de9b2d9ed
Cleaned up documentation and addressed review comments.
2020-12-22 11:29:26 -06:00
Ed Burns
5546961c8c
Test fixes and cleanup.
2020-12-17 17:10:39 -06:00
Ed Burns
d09571c0ad
Added option to specify passphrase as a Data object, added section to README.
2020-12-17 11:19:05 -06:00
Gwendal Roué
e72007c1dd
Make SQLiteral.subquery a promise
...
This allows us to postpone CTEs definition until a db connection is available
2020-12-13 18:29:43 +01:00
Gwendal Roué
fe8e32586b
Parse time zones
2020-11-14 10:35:04 +01:00
Gwendal Roué
2389ec691b
Merge pull request #855 from mallman/generated_columns
...
SQLite 3.33.0 + Support for generated columns
2020-10-31 18:56:34 +01:00
Gwendal Roué
67e10926db
Restore logic
2020-10-31 13:09:49 +01:00
Gwendal Roué
e971e210a3
Update documentation about PRAGMA table_info and table_xinfo
2020-10-31 13:09:05 +01:00
Michael Allman
9c6f19f55f
Condition table column info query on SQLite version
2020-10-25 11:42:43 -07:00
Gwendal Roué
2a7f41c494
Database.close() is idempotent
...
This change addresses https://bugs.swift.org/browse/SR-13746
2020-10-25 10:12:42 +01:00