Questions tagged [go-sqlite3]
37 questions
0
votes
1 answer
go-sqlcipher: failed to compile/run sample on Windows
I'm using Windows Server 2019 x64. Trying to leverage go-sqlcipher to manipulate sqlite database.
But it always fails when I try to run the sample.
# go run .\encrypto.go
# github.com/xeodou/go-sqlcipher
sqlite3-binding.c:24328:26: fatal error:…

JasonS
- 445
- 1
- 5
- 17
0
votes
1 answer
JSON1 support go-sqlite3 using gorm
In the following example I use json_extract(...) using the go-sqlite3 driver in Golang.
package main
import (
_ "github.com/mattn/go-sqlite3"
"github.com/jinzhu/gorm"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"fmt"
…

riccardo_92
- 89
- 13
0
votes
1 answer
Is there a way to see the result of applying arguments to a query in sqlite?
I'm using sqlite3 in Go and for debugging purposes would like to see the result of applying arguments to the query with the replacements, i.e., with ? replaced by the actual argument. Is this possible?
Currently, I have code like the following and…

Eric '3ToedSloth'
- 332
- 1
- 9
-1
votes
1 answer
go run/build hanging
I have this simple go file called main.go:
package main
import (
"fmt"
"database/sql"
_ "github.com/mattn/go-sqlite3"
)
func main() {
db, err := sql.Open("sqlite3", "mydb.db")
if err != nil {
panic(err)
}
…

Ibrahim Sharaf
- 125
- 8
-1
votes
1 answer
Not able to convert err into go-sqlite3.Error
I am trying to convert an err in Go to go-sqlite3.Error, but it fails always.
Above image represents the snapshot of my debug windows, which shows that the err is of type go-sqlite3.Error
I am using below code to type cast.
import (
…

Ashish Mittal
- 643
- 3
- 12
- 32
-2
votes
0 answers
Is it possible to access the data of an sqlite in-memory database?
I want to save the data of an in-memory sqlite database to a PostgreSQL database, without first having to create a file in the local filesystem. Is there any language (and library) this is possible with, without having to interface with sqlite…

Tony Borchert
- 158
- 8
-2
votes
0 answers
sqlite3 Database file is not visible in pycharm after migrate
enter image description herePycharm IDE is not generating database file I have followed all the commands correctly
First I used -- > python manage.py makemigrations reels
Yes it created a file like 0001_initial.py,
After that I tried to migrate your…

NAVEEN
- 1
- 1