Skip to content

Error When Re-Open the Database #2

@KiddoV

Description

@KiddoV

I got this error when trying to reopen the database the second time.
The first time when doing gorm.Open the DB file will be automatically generate, when I reload the script, I got this err:

dburl := fmt.Sprintf("go-sqlcipher.sqlite?_pragma_key=multitechPassword&_pragma_cipher_page_size=4096")
gormDb, err := gorm.Open(sqliteEncrypt.Open(dburl), &gorm.Config{SkipDefaultTransaction: true, PrepareStmt: true})
2022/08/12 14:24:11 C:/Users/vho/go/pkg/mod/github.com/jackfr0st13/gorm-sqlite-cipher@v0.1.0/migrator.go:108 sql: converting argument $1 type: unsupported type
clause.Expr, a struct

Please be advised!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions