import (
"githun.com/lvxuan263/gorm-sqlcipher"
"gorm.io/gorm"
)
key := url.QueryEscape("my password")
dbname := fmt.Sprintf("db", key)
dsn := fmt.Sprintf("%s?_pragma_key=x'%s'&_pragma_cipher_page_size=4096", dbname, key)
db, err := gorm.Open(sqlite.Open(dsn), &gorm.Config{})
forked from go-gorm/sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
GORM sqlcipher driver
License
lvxuan263/gorm-sqlcipher
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
GORM sqlcipher driver
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Go 100.0%