Quantcast
Channel: "no such table" error with in-memory database - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by k_o_ for "no such table" error with in-memory database

I had this error because of a programming mistake, in one line I referenced the tx transaction, in a different line I referenced r.db:wrong:err = r.db.Transaction(func(tx *gorm.DB) error {result :=...

View Article



Answer by Yuxuan Lu for "no such table" error with in-memory database

:memory: will open a separate database for each connection. use file::memory:?cache=shared instead.Update: I also run into some lock issues using the above code, it seems to me that use :memory: with...

View Article

Answer by ko80 for "no such table" error with in-memory database

Maybe this would help someoneI had the same issue with 'no such table' and found an exact explanation:If sql.Rows is not closed before next query then driver returns no such table on next query. Issue...

View Article

Answer by АлександрАверьянов for "no such table" error with in-memory database

I have "“no such table” error with in-memory sqlite" occurred when I tried to use transactions with error. Example:tx, err = DB.Begin()if err != nil { ErrorStatus = true goto ErrorLabel}tempQuery =...

View Article

Answer by monirz for "no such table" error with in-memory database

If you used the same schema for creating table the one you posted here then the table is never created because the schema has syntax error and it should be like this var schema = ` DROP TABLE IF EXISTS...

View Article


"no such table" error with in-memory database

I am using an in-memory SQLite database:func init() { global.ConductorConfig = readConfig() log.Println(utils.GetCurrentDir() + global.ConductorConfig.DbFile) //db = sqlx.MustConnect("sqlite3",...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images