We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac7d128 + 3d4e443 commit c1a1680Copy full SHA for c1a1680
SQLiter/src/commonMain/kotlin/co/touchlab/sqliter/DatabaseConnection.kt
@@ -60,7 +60,7 @@ fun DatabaseConnection.stringForQuery(sql:String):String = withStatement(sql){
60
* @param cipherKey the database cipher key
61
*/
62
fun DatabaseConnection.setCipherKey(cipherKey: String) {
63
- withStatement("PRAGMA key = \"$cipherKey\";") { execute() }
+ stringForQuery("PRAGMA key = \"$cipherKey\";")
64
}
65
66
/**
@@ -71,7 +71,7 @@ fun DatabaseConnection.setCipherKey(cipherKey: String) {
71
72
fun DatabaseConnection.resetCipherKey(oldKey: String, newKey: String) {
73
setCipherKey(oldKey)
74
- withStatement("PRAGMA rekey = \"$newKey\";") { execute() }
+ stringForQuery("PRAGMA rekey = \"$newKey\";")
75
76
77
0 commit comments