mutecomm / go-sqlcipher

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

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

Open navono opened 4 years ago

navono commented 4 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?