mutecomm / go-sqlcipher

Self-contained Go sqlite3 driver with an AES-256 encrypted sqlite3 database
Other
159 stars 60 forks source link

repeate open a db file then execute query will cause `file is not a database` error #18

Open navono opened 3 years ago

navono commented 3 years ago

Before using go-sqlcipher, I was using gorm + sqilte3 and everything was working fine. After I switched from sqlite3 to go-sqlcipher, I get an error at runtime like this:

file is not a database

When do some query like:

db.Where().Find()

Where did this go wrong? any clue to resolve this probelem?