File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 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 ] [ ] )
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
Original file line number Diff line number Diff 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
21152122We can log SQL using the database’s `trace` function.
You can’t perform that action at this time.
0 commit comments