Skip to content

Commit ceb13aa

Browse files
committed
Document changes
1 parent be14b42 commit ceb13aa

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Support `WITH` clause ([#1139][])
66
* Add `Value` conformance for `NSURL` ([#1110][], [#1141][])
77
* Add decoding for `UUID` ([#1137][])
8-
* SQLCipher: improve documentation ([#1098][]), add `sqlcipher_export`
8+
* SQLCipher: improve documentation ([#1098][]), add `sqlcipher_export` ([#1101][])
99
* Fix `insertMany([Encodable])` ([#1130][], [#1138][])
1010
* Fix incorrect spelling of `remove_diacritics` ([#1128][])
1111
* Fix project build order ([#1131][])
@@ -165,6 +165,7 @@
165165
[#1095]: https://github.com/stephencelis/SQLite.swift/pull/1095
166166
[#1098]: https://github.com/stephencelis/SQLite.swift/issues/1098
167167
[#1100]: https://github.com/stephencelis/SQLite.swift/pull/1100
168+
[#1101]: https://github.com/stephencelis/SQLite.swift/issues/1101
168169
[#1105]: https://github.com/stephencelis/SQLite.swift/pull/1105
169170
[#1109]: https://github.com/stephencelis/SQLite.swift/issues/1109
170171
[#1110]: https://github.com/stephencelis/SQLite.swift/pull/1110

Documentation/Index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,6 +2110,13 @@ try db.detach("external")
21102110
// DETACH DATABASE 'external'
21112111
```
21122112

2113+
When compiled for SQLCipher, you can additionally pass a `key` parameter to `attach`:
2114+
2115+
```swift
2116+
try db.attach(.uri("encrypted.sqlite"), as: "encrypted", key: "secret")
2117+
// ATTACH DATABASE 'encrypted.sqlite' AS 'encrypted' KEY 'secret'
2118+
```
2119+
21132120
## Logging
21142121

21152122
We can log SQL using the database’s `trace` function.

0 commit comments

Comments
 (0)