Skip to content

Commit 4dda8d7

Browse files
committed
Host DocC on Github pages
SPI will be up soon, but we have to fix the dead links currently published on the master branch SwiftPackageIndex/SwiftPackageIndex-Server#2120
1 parent 16fe433 commit 4dda8d7

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments):
307+
FTS3Pattern are regular [values](../README.md#values). You can use them as query [arguments](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/statementarguments):
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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments):
590+
FTS5Pattern are regular [values](../README.md#values). You can use them as query [arguments](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/statementarguments):
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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasemigrator) for more migrator methods.
80+
See the [DatabaseMigrator reference](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasemigrator) for more migrator methods.
8181

8282

8383
## The `eraseDatabaseOnSchemaChange` Option

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ Documentation
322322

323323
#### Reference
324324

325-
- [GRDB Reference](https://swiftpackageindex.com/groue/grdb/documentation/grdb/)
325+
- [GRDB Reference](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/)
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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/configuration) for more details and configuration options.
619+
See [Configuration](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/configuration) 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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments) 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.3/documentation/grdb/statementarguments) 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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/cursor) 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.3/documentation/grdb/cursor) 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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments) 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.3/documentation/grdb/statementarguments) 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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments):
1321+
Values can be used as [statement arguments](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/statementarguments):
13221322

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

1794-
Transactions can't be left opened unless you set the [allowsUnsafeTransactions](https://swiftpackageindex.com/groue/grdb/documentation/grdb/configuration/allowsunsafetransactions) configuration flag:
1794+
Transactions can't be left opened unless you set the [allowsUnsafeTransactions](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/configuration/allowsunsafetransactions) configuration flag:
17951795

17961796
```swift
17971797
// fatal error: A transaction has been left opened at the end of a database access
@@ -1903,7 +1903,7 @@ try dbQueue.write { db in
19031903
}
19041904
```
19051905

1906-
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](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments), which happens to adopt the ExpressibleByArrayLiteral and ExpressibleByDictionaryLiteral protocols).
1906+
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.3/documentation/grdb/statementarguments), which happens to adopt the ExpressibleByArrayLiteral and ExpressibleByDictionaryLiteral protocols).
19071907

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

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

1989-
For more information about prepared statements, see the [Statement reference](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statement).
1989+
For more information about prepared statements, see the [Statement reference](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/statement).
19901990

19911991

19921992
### Prepared Statements Cache
@@ -2730,7 +2730,7 @@ try Place.fetchSet(db, sql: "SELECT ...", arguments:...) // Set<Place>
27302730
try Place.fetchOne(db, sql: "SELECT ...", arguments:...) // Place?
27312731
```
27322732

2733-
See [fetching methods](#fetching-methods) for information about the `fetchCursor`, `fetchAll`, `fetchSet` and `fetchOne` methods. See [StatementArguments](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments) for more information about the query arguments.
2733+
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.3/documentation/grdb/statementarguments) for more information about the query arguments.
27342734

27352735
> **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()`.
27362736

@@ -3240,7 +3240,7 @@ Here is a list with all the available [persistence callbacks], listed in the sam
32403240
- `aroundDelete`
32413241
- `didDelete`
32423242

3243-
For detailed information about each callback, check the [reference](https://swiftpackageindex.com/groue/grdb/documentation/grdb/mutablepersistablerecord/).
3243+
For detailed information about each callback, check the [reference](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/mutablepersistablerecord/).
32443244

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

@@ -3433,7 +3433,7 @@ protocol EncodableRecord {
34333433
}
34343434
```
34353435

3436-
See [DatabaseColumnDecodingStrategy](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasecolumndecodingstrategy) and [DatabaseColumnEncodingStrategy](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasecolumnencodingstrategy/) to learn about all available strategies.
3436+
See [DatabaseColumnDecodingStrategy](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasecolumndecodingstrategy) and [DatabaseColumnEncodingStrategy](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasecolumnencodingstrategy/) to learn about all available strategies.
34373437

34383438

34393439
### Date and UUID Coding Strategies
@@ -3455,7 +3455,7 @@ protocol EncodableRecord {
34553455
}
34563456
```
34573457

3458-
See [DatabaseDateDecodingStrategy](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasedatedecodingstrategy/), [DatabaseDateEncodingStrategy](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasedateencodingstrategy/), and [DatabaseUUIDEncodingStrategy](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databaseuuidencodingstrategy/) to learn about all available strategies.
3458+
See [DatabaseDateDecodingStrategy](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasedatedecodingstrategy/), [DatabaseDateEncodingStrategy](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasedateencodingstrategy/), and [DatabaseUUIDEncodingStrategy](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databaseuuidencodingstrategy/) to learn about all available strategies.
34593459

34603460
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).
34613461

@@ -5015,7 +5015,7 @@ Player // SELECT * FROM player
50155015
```
50165016
50175017
5018-
Raw SQL snippets are also accepted, with eventual [arguments](https://swiftpackageindex.com/groue/grdb/documentation/grdb/statementarguments):
5018+
Raw SQL snippets are also accepted, with eventual [arguments](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/statementarguments):
50195019
50205020
```swift
50215021
// SELECT DATE(creationDate), COUNT(*) FROM player WHERE name = 'Arthur' GROUP BY date(creationDate)
@@ -7252,7 +7252,7 @@ DatabaseRegion helps [ValueObservation] and [DatabaseRegionObservation] track ch
72527252
72537253
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.
72547254
7255-
For more details, see the [reference](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databaseregion/).
7255+
For more details, see the [reference](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databaseregion/).
72567256
72577257
72587258
#### The DatabaseRegionConvertible Protocol
@@ -8616,7 +8616,7 @@ When this is the case, there are two possible explanations:
86168616
try db.execute(sql: "UPDATE player SET name = ?", arguments: [name])
86178617
```
86188618
8619-
For more information, see [Double-quoted String Literals Are Accepted](https://sqlite.org/quirks.html#dblquote), and [Configuration.acceptsDoubleQuotedStringLiterals](https://swiftpackageindex.com/groue/grdb/documentation/grdb/configuration/acceptsdoublequotedstringliterals).
8619+
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.3/documentation/grdb/configuration/acceptsdoublequotedstringliterals).
86208620
86218621
86228622
@@ -8765,7 +8765,7 @@ This chapter has [moved](Documentation/Concurrency.md#database-snapshots).
87658765
87668766
#### DatabaseWriter and DatabaseReader Protocols
87678767
8768-
This chapter was removed. See the references of [DatabaseReader](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasereader) and [DatabaseWriter](https://swiftpackageindex.com/groue/grdb/documentation/grdb/databasewriter).
8768+
This chapter was removed. See the references of [DatabaseReader](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasereader) and [DatabaseWriter](http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/databasewriter).
87698769
87708770
#### Asynchronous APIs
87718771
@@ -8819,7 +8819,7 @@ This chapter was renamed to [Embedding SQL in Query Interface Requests].
88198819
[Sharing a Database]: Documentation/SharingADatabase.md
88208820
[FAQ]: #faq
88218821
[Database Observation]: #database-changes-observation
8822-
[SQLRequest]: https://swiftpackageindex.com/groue/grdb/documentation/grdb/sqlrequest
8822+
[SQLRequest]: http://groue.github.io/GRDB.swift/docs/6.3/documentation/grdb/sqlrequest
88238823
[SQL literal]: Documentation/SQLInterpolation.md#sql-literal
88248824
[Identifiable]: https://developer.apple.com/documentation/swift/identifiable
88258825
[Query Interface Organization]: Documentation/QueryInterfaceOrganization.md

0 commit comments

Comments
 (0)