From 122bc51f252d16c657426862a3f20809a1435b24 Mon Sep 17 00:00:00 2001 From: Shilyx Date: Tue, 5 May 2020 10:40:25 +0800 Subject: [PATCH] use "_key" or the db file will not be opened (#13) --- _example/encrypto/encrypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_example/encrypto/encrypto.go b/_example/encrypto/encrypto.go index c09d483..1465fc8 100644 --- a/_example/encrypto/encrypto.go +++ b/_example/encrypto/encrypto.go @@ -14,7 +14,7 @@ import ( ) func main() { - db, err := sql.Open("sqlite3", "users.db?key=123456") + db, err := sql.Open("sqlite3", "users.db?_key=123456") if err != nil { fmt.Println(err) }