forked from mirror/go-sqlcipher
use "_key" or the db file will not be opened (#13)
This commit is contained in:
parent
5ef699997e
commit
122bc51f25
|
@ -14,7 +14,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
db, err := sql.Open("sqlite3", "users.db?key=123456")
|
db, err := sql.Open("sqlite3", "users.db?_key=123456")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue