Skip to content

Commit 1036dd4

Browse files
committed
v6.0.0-beta
1 parent 48f14c7 commit 1036dd4

File tree

7 files changed

+36
-30
lines changed

7 files changed

+36
-30
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
55

66
GRDB adheres to [Semantic Versioning](https://semver.org/), with one exception: APIs flagged [**:fire: EXPERIMENTAL**](README.md#what-are-experimental-features). Those are unstable, and may break between any two minor releases of the library.
77

8+
#### 6.x Releases
9+
10+
- `6.0.0` Betas - [6.0.0-beta](#600-beta)
11+
812
#### 5.x Releases
913

1014
- `5.26.x` Releases - [5.26.0](#5260)
@@ -93,7 +97,9 @@ GRDB adheres to [Semantic Versioning](https://semver.org/), with one exception:
9397

9498
---
9599

96-
## 6.0.0
100+
## 6.0.0-beta
101+
102+
Released August 21, 2022 • [diff](https://github.com/groue/GRDB.swift/compare/v5.26.0...v6.0.0-beta)
97103

98104
### New
99105

Documentation/FullTextSearch.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ let pattern = FTS3Pattern(matchingAnyTokenIn: "") // nil
304304
let pattern = FTS3Pattern(matchingAnyTokenIn: "*") // nil
305305
```
306306

307-
FTS3Pattern are regular [values](../README.md#values). You can use them as query [arguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html):
307+
FTS3Pattern are regular [values](../README.md#values). You can use them as query [arguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html):
308308

309309
```swift
310310
let documents = try Document.fetchAll(db,
@@ -587,7 +587,7 @@ let pattern = FTS5Pattern(matchingAnyTokenIn: "") // nil
587587
let pattern = FTS5Pattern(matchingAnyTokenIn: "*") // nil
588588
```
589589

590-
FTS5Pattern are regular [values](../README.md#values). You can use them as query [arguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html):
590+
FTS5Pattern are regular [values](../README.md#values). You can use them as query [arguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html):
591591

592592
```swift
593593
let documents = try Document.fetchAll(db,

Documentation/Migrations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ try dbQueue.read { db in
7777
}
7878
```
7979

80-
See the [DatabaseMigrator reference](http://groue.github.io/GRDB.swift/docs/5.26/Structs/DatabaseMigrator.html) for more migrator methods.
80+
See the [DatabaseMigrator reference](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/DatabaseMigrator.html) for more migrator methods.
8181

8282

8383
## The `eraseDatabaseOnSchemaChange` Option

GRDB.swift.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'GRDB.swift'
3-
s.version = '5.26.0'
3+
s.version = '6.0.0-beta'
44

55
s.license = { :type => 'MIT', :file => 'LICENSE' }
66
s.summary = 'A toolkit for SQLite databases, with a focus on application development.'

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,10 @@ ifdef JAZZY
496496
--author 'Gwendal Roué' \
497497
--author_url https://github.com/groue \
498498
--github_url https://github.com/groue/GRDB.swift \
499-
--github-file-prefix https://github.com/groue/GRDB.swift/tree/v5.26.0 \
500-
--module-version 5.26.0 \
499+
--github-file-prefix https://github.com/groue/GRDB.swift/tree/v6.0.0-beta \
500+
--module-version 6.0.0-beta \
501501
--module GRDB \
502-
--root-url http://groue.github.io/GRDB.swift/docs/5.26/ \
502+
--root-url http://groue.github.io/GRDB.swift/docs/6.0.0-beta/ \
503503
--output Documentation/Reference \
504504
--xcodebuild-arguments -project,GRDB.xcodeproj,-scheme,GRDBiOS
505505
else

README.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
---
1313

14-
**Latest release**: July 9, 2022 • [version 5.26.0](https://github.com/groue/GRDB.swift/tree/v5.26.0)[CHANGELOG](CHANGELOG.md)[Migrating From GRDB 5 to GRDB 6](Documentation/GRDB6MigrationGuide.md)
14+
**Latest release**: August 21, 2022 • [version 6.0.0-beta](https://github.com/groue/GRDB.swift/tree/v6.0.0-beta)[CHANGELOG](CHANGELOG.md)[Migrating From GRDB 5 to GRDB 6](Documentation/GRDB6MigrationGuide.md)
1515

1616
**Requirements**: iOS 11.0+ / macOS 10.13+ / tvOS 11.0+ / watchOS 4.0+ • SQLite 3.19.3+ • Swift 5.7+ / Xcode 14+
1717

1818
| Swift version | GRDB version |
1919
| -------------- | ----------------------------------------------------------- |
20-
| **Swift 5.7+** | **v5.26.0** |
20+
| **Swift 5.7+** | **v6.0.0-beta** |
2121
| Swift 5.3 | [v5.26.0](https://github.com/groue/GRDB.swift/tree/v5.26.0) |
2222
| Swift 5.2 | [v5.12.0](https://github.com/groue/GRDB.swift/tree/v5.12.0) |
2323
| Swift 5.1 | [v4.14.0](https://github.com/groue/GRDB.swift/tree/v4.14.0) |
@@ -322,7 +322,7 @@ Documentation
322322

323323
#### Reference
324324

325-
- [GRDB Reference](http://groue.github.io/GRDB.swift/docs/5.26/index.html) (generated by [Jazzy](https://github.com/realm/jazzy))
325+
- [GRDB Reference](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/index.html) (generated by [Jazzy](https://github.com/realm/jazzy))
326326

327327
#### Getting Started
328328

@@ -616,7 +616,7 @@ do {
616616

617617
> **Warning**: It is your responsibility to prevent sensitive information from leaking in unexpected locations, so you should not set the `publicStatementArguments` flag in release builds (think about GDPR and other privacy-related rules).
618618
619-
See [Configuration](http://groue.github.io/GRDB.swift/docs/5.26/Structs/Configuration.html) for more details and configuration options.
619+
See [Configuration](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/Configuration.html) for more details and configuration options.
620620

621621

622622
SQLite API
@@ -673,7 +673,7 @@ try dbQueue.write { db in
673673
}
674674
```
675675

676-
The `?` and colon-prefixed keys like `:score` in the SQL query are the **statements arguments**. You pass arguments with arrays or dictionaries, as in the example above. See [Values](#values) for more information on supported arguments types (Bool, Int, String, Date, Swift enums, etc.), and [StatementArguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html) for a detailed documentation of SQLite arguments.
676+
The `?` and colon-prefixed keys like `:score` in the SQL query are the **statements arguments**. You pass arguments with arrays or dictionaries, as in the example above. See [Values](#values) for more information on supported arguments types (Bool, Int, String, Date, Swift enums, etc.), and [StatementArguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html) for a detailed documentation of SQLite arguments.
677677

678678
You can also embed query arguments right into your SQL queries, with the `literal` argument label, as in the example below. See [SQL Interpolation] for more details.
679679

@@ -931,7 +931,7 @@ try dbQueue.read { db in
931931
let dictionary = try Dictionary(uniqueKeysWithValues: cursor)
932932
```
933933

934-
- **Cursors adopt the [Cursor](http://groue.github.io/GRDB.swift/docs/5.26/Protocols/Cursor.html) protocol, which looks a lot like standard [lazy sequences](https://developer.apple.com/reference/swift/lazysequenceprotocol) of Swift.** As such, cursors come with many convenience methods: `compactMap`, `contains`, `dropFirst`, `dropLast`, `drop(while:)`, `enumerated`, `filter`, `first`, `flatMap`, `forEach`, `joined`, `joined(separator:)`, `max`, `max(by:)`, `min`, `min(by:)`, `map`, `prefix`, `prefix(while:)`, `reduce`, `reduce(into:)`, `suffix`:
934+
- **Cursors adopt the [Cursor](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Protocols/Cursor.html) protocol, which looks a lot like standard [lazy sequences](https://developer.apple.com/reference/swift/lazysequenceprotocol) of Swift.** As such, cursors come with many convenience methods: `compactMap`, `contains`, `dropFirst`, `dropLast`, `drop(while:)`, `enumerated`, `filter`, `first`, `flatMap`, `forEach`, `joined`, `joined(separator:)`, `max`, `max(by:)`, `min`, `min(by:)`, `map`, `prefix`, `prefix(while:)`, `reduce`, `reduce(into:)`, `suffix`:
935935

936936
```swift
937937
// Prints all Github links
@@ -1010,7 +1010,7 @@ let rows = try Row.fetchAll(db,
10101010
arguments: ["name": "Arthur"])
10111011
```
10121012

1013-
See [Values](#values) for more information on supported arguments types (Bool, Int, String, Date, Swift enums, etc.), and [StatementArguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html) for a detailed documentation of SQLite arguments.
1013+
See [Values](#values) for more information on supported arguments types (Bool, Int, String, Date, Swift enums, etc.), and [StatementArguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html) for a detailed documentation of SQLite arguments.
10141014

10151015
Unlike row arrays that contain copies of the database rows, row cursors are close to the SQLite metal, and require a little care:
10161016

@@ -1318,7 +1318,7 @@ GRDB ships with built-in support for the following value types:
13181318

13191319
- Generally speaking, all types that adopt the [DatabaseValueConvertible](#custom-value-types) protocol.
13201320

1321-
Values can be used as [statement arguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html):
1321+
Values can be used as [statement arguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html):
13221322

13231323
```swift
13241324
let url: URL = ...
@@ -1789,7 +1789,7 @@ try dbQueue.inDatabase { db in // or dbPool.writeWithoutTransaction
17891789
}
17901790
```
17911791

1792-
Transactions can't be left opened unless you set the [allowsUnsafeTransactions](http://groue.github.io/GRDB.swift/docs/5.26/Structs/Configuration.html) configuration flag:
1792+
Transactions can't be left opened unless you set the [allowsUnsafeTransactions](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/Configuration.html) configuration flag:
17931793

17941794
```swift
17951795
// fatal error: A transaction has been left opened at the end of a database access
@@ -1901,7 +1901,7 @@ try dbQueue.write { db in
19011901
}
19021902
```
19031903

1904-
The `?` and colon-prefixed keys like `:name` in the SQL query are the statement arguments. You set them with arrays or dictionaries (arguments are actually of type [StatementArguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html), which happens to adopt the ExpressibleByArrayLiteral and ExpressibleByDictionaryLiteral protocols).
1904+
The `?` and colon-prefixed keys like `:name` in the SQL query are the statement arguments. You set them with arrays or dictionaries (arguments are actually of type [StatementArguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html), which happens to adopt the ExpressibleByArrayLiteral and ExpressibleByDictionaryLiteral protocols).
19051905

19061906
```swift
19071907
insertStatement.arguments = ["name": "Arthur", "score": 1000]
@@ -1984,7 +1984,7 @@ See also `Database.execute(sql:)` in the [Executing Updates](#executing-updates)
19841984

19851985
> **Note**: it is a programmer error to reuse a prepared statement that has failed: GRDB may crash if you do so.
19861986

1987-
For more information about prepared statements, see the [Statement reference](http://groue.github.io/GRDB.swift/docs/5.26/Classes/Statement.html).
1987+
For more information about prepared statements, see the [Statement reference](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Classes/Statement.html).
19881988

19891989

19901990
### Prepared Statements Cache
@@ -2728,7 +2728,7 @@ try Place.fetchSet(db, sql: "SELECT ...", arguments:...) // Set<Place>
27282728
try Place.fetchOne(db, sql: "SELECT ...", arguments:...) // Place?
27292729
```
27302730

2731-
See [fetching methods](#fetching-methods) for information about the `fetchCursor`, `fetchAll`, `fetchSet` and `fetchOne` methods. See [StatementArguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html) for more information about the query arguments.
2731+
See [fetching methods](#fetching-methods) for information about the `fetchCursor`, `fetchAll`, `fetchSet` and `fetchOne` methods. See [StatementArguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html) for more information about the query arguments.
27322732

27332733
> **Note**: for performance reasons, the same row argument to `init(row:)` is reused during the iteration of a fetch query. If you want to keep the row for later use, make sure to store a copy: `self.row = row.copy()`.
27342734

@@ -3140,7 +3140,7 @@ Here is a list with all the available callbacks, listed in the same order in whi
31403140
- `aroundDelete`
31413141
- `didDelete`
31423142

3143-
Make sure you provide implementations that match the exact callback signatures. When in doubt, check the [reference](http://groue.github.io/GRDB.swift/docs/5.26/Protocols/MutablePersistableRecord.html).
3143+
Make sure you provide implementations that match the exact callback signatures. When in doubt, check the [reference](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Protocols/MutablePersistableRecord.html).
31443144

31453145
In the `MutablePersistableRecord` protocol, `willInsert` and `didInsert` are mutating methods. In `PersistableRecord`, they are not mutating.
31463146

@@ -3333,7 +3333,7 @@ protocol EncodableRecord {
33333333
}
33343334
```
33353335

3336-
See [DatabaseColumnDecodingStrategy](https://groue.github.io/GRDB.swift/docs/5.26/Enums/DatabaseColumnDecodingStrategy.html) and [DatabaseColumnEncodingStrategy](https://groue.github.io/GRDB.swift/docs/5.26/Enums/DatabaseColumnEncodingStrategy.html) to learn about all available strategies.
3336+
See [DatabaseColumnDecodingStrategy](https://groue.github.io/GRDB.swift/docs/6.0.0-beta/Enums/DatabaseColumnDecodingStrategy.html) and [DatabaseColumnEncodingStrategy](https://groue.github.io/GRDB.swift/docs/6.0.0-beta/Enums/DatabaseColumnEncodingStrategy.html) to learn about all available strategies.
33373337

33383338

33393339
### Date and UUID Coding Strategies
@@ -3355,7 +3355,7 @@ protocol EncodableRecord {
33553355
}
33563356
```
33573357

3358-
See [DatabaseDateDecodingStrategy](https://groue.github.io/GRDB.swift/docs/5.26/Enums/DatabaseDateDecodingStrategy.html), [DatabaseDateEncodingStrategy](https://groue.github.io/GRDB.swift/docs/5.26/Enums/DatabaseDateEncodingStrategy.html), and [DatabaseUUIDEncodingStrategy](https://groue.github.io/GRDB.swift/docs/5.26/Enums/DatabaseUUIDEncodingStrategy.html) to learn about all available strategies.
3358+
See [DatabaseDateDecodingStrategy](https://groue.github.io/GRDB.swift/docs/6.0.0-beta/Enums/DatabaseDateDecodingStrategy.html), [DatabaseDateEncodingStrategy](https://groue.github.io/GRDB.swift/docs/6.0.0-beta/Enums/DatabaseDateEncodingStrategy.html), and [DatabaseUUIDEncodingStrategy](https://groue.github.io/GRDB.swift/docs/6.0.0-beta/Enums/DatabaseUUIDEncodingStrategy.html) to learn about all available strategies.
33593359

33603360
There is no customization of uuid decoding, because UUID can already decode all its encoded variants (16-bytes blobs and uuid strings, both uppercase and lowercase).
33613361

@@ -4915,7 +4915,7 @@ Player // SELECT * FROM player
49154915
```
49164916
49174917
4918-
Raw SQL snippets are also accepted, with eventual [arguments](http://groue.github.io/GRDB.swift/docs/5.26/Structs/StatementArguments.html):
4918+
Raw SQL snippets are also accepted, with eventual [arguments](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/StatementArguments.html):
49194919
49204920
```swift
49214921
// SELECT DATE(creationDate), COUNT(*) FROM player WHERE name = 'Arthur' GROUP BY date(creationDate)
@@ -5821,7 +5821,7 @@ try Player.customRequest().fetchAll(db) // [Player]
58215821
58225822
- The `adapted(_:)` method eases the consumption of complex rows with [row adapters](#row-adapters). See [Joined Queries Support](#joined-queries-support) for some sample code that uses this method.
58235823
5824-
- [AnyFetchRequest](http://groue.github.io/GRDB.swift/docs/5.26/Structs/AnyFetchRequest.html): a type-erased request.
5824+
- [AnyFetchRequest](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/AnyFetchRequest.html): a type-erased request.
58255825
58265826
58275827
## Joined Queries Support
@@ -7154,7 +7154,7 @@ DatabaseRegion helps [ValueObservation] and [DatabaseRegionObservation] track ch
71547154
71557155
For example, if you observe the region of `Player.select(max(Column("score")))`, then you'll get be notified of all changes performed on the `score` column of the `player` table (updates, insertions and deletions), even if they do not modify the value of the maximum score. However, you will not get any notification for changes performed on other database tables, or updates to other columns of the player table.
71567156
7157-
For more details, see the [reference](https://groue.github.io/GRDB.swift/docs/5.26/Structs/DatabaseRegion.html).
7157+
For more details, see the [reference](https://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/DatabaseRegion.html).
71587158
71597159
71607160
#### The DatabaseRegionConvertible Protocol
@@ -8518,7 +8518,7 @@ When this is the case, there are two possible explanations:
85188518
try db.execute(sql: "UPDATE player SET name = ?", arguments: [name])
85198519
```
85208520
8521-
For more information, see [Double-quoted String Literals Are Accepted](https://sqlite.org/quirks.html#dblquote), and [Configuration.acceptsDoubleQuotedStringLiterals](http://groue.github.io/GRDB.swift/docs/5.26/Structs/Configuration.html#/s:4GRDB13ConfigurationV33acceptsDoubleQuotedStringLiteralsSbvp).
8521+
For more information, see [Double-quoted String Literals Are Accepted](https://sqlite.org/quirks.html#dblquote), and [Configuration.acceptsDoubleQuotedStringLiterals](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/Configuration.html#/s:4GRDB13ConfigurationV33acceptsDoubleQuotedStringLiteralsSbvp).
85228522
85238523
85248524
@@ -8667,7 +8667,7 @@ This chapter has [moved](Documentation/Concurrency.md#database-snapshots).
86678667
86688668
#### DatabaseWriter and DatabaseReader Protocols
86698669
8670-
This chapter was removed. See the references of [DatabaseReader](http://groue.github.io/GRDB.swift/docs/5.26/Protocols/DatabaseReader.html) and [DatabaseWriter](http://groue.github.io/GRDB.swift/docs/5.26/Protocols/DatabaseWriter.html).
8670+
This chapter was removed. See the references of [DatabaseReader](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Protocols/DatabaseReader.html) and [DatabaseWriter](http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Protocols/DatabaseWriter.html).
86718671
86728672
#### Asynchronous APIs
86738673
@@ -8720,7 +8720,7 @@ This chapter was renamed to [Embedding SQL in Query Interface Requests].
87208720
[Sharing a Database]: Documentation/SharingADatabase.md
87218721
[FAQ]: #faq
87228722
[Database Observation]: #database-changes-observation
8723-
[SQLRequest]: http://groue.github.io/GRDB.swift/docs/5.26/Structs/SQLRequest.html
8723+
[SQLRequest]: http://groue.github.io/GRDB.swift/docs/6.0.0-beta/Structs/SQLRequest.html
87248724
[SQL literal]: Documentation/SQLInterpolation.md#sql-literal
87258725
[Identifiable]: https://developer.apple.com/documentation/swift/identifiable
87268726
[Query Interface Organization]: Documentation/QueryInterfaceOrganization.md

Support/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>5.26.0</string>
18+
<string>6.0.0-beta</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)