go-sqlite3
go-sqlite3 copied to clipboard
sqlite3 driver for go using database/sql
Add build tag sqlite_math_functions to enable built-in scalar math functions using compiler flag SQLITE_ENABLE_MATH_FUNCTIONS. For reference: https://www.sqlite.org/lang_mathfunc.html. I also updated the readme file, please let me know if you have...
I've the below code where I registered a trigger successfuly: ```go package main import ( "database/sql" "log" sqlite "github.com/mattn/go-sqlite3" ) func validate(y int64) int64 { return y % 2 }...
Given a prepared statement of the form `INSERT INTO foo (a,b,c) VALUES($x,$y,$z)` and successive Exec() calls passing `[]driver.NamedValue` with the `Name` field specified, if not all the bind variables are...
OS: CentOS Linux release 7.4.1708 (Core) Go: go version go1.18.1 linux/amd64 my source code ```go import ( ... sqlite3 "github.com/mattn/go-sqlite3" ... ) func isUniqueViolationError(err error) bool { if sqlErr, ok...
Imagine a simple http server that gets sent some sql. The server then executes the sql and sends back the resulting .sqlite3 file. My idea of doing something similar like...
I'm trying to make a golang image (base image is golang:1.16) which use sqlite3 by running "CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build main.go" in docker in my Apple Silicon machine, but...
Since the `dest` slice is already an address, taking the address of the address when updating the values causes the values to be lost in the caller
Hi, We at the platform team of razorpay internally use [bulk-insert](https://github.com/t-tiger/gorm-bulk-insert) which internally uses `github.com/jinzhu/gorm v1.9.12` and creates an indirect dependency on github.com/mattn/go-sqlite3 v2.0.3. Reference :- https://github.com/t-tiger/gorm-bulk-insert/blob/master/go.mod#L14 Now, this setup...
Since [this PR](https://github.com/mattn/go-sqlite3/pull/926) the underlying version of SQLite should be >=3.35 (and it is). The PR even mentions the new maths function added. However, when I try to use math...
Hello, I noticed that sqlite3-go does not allow multiple statements separated by a semi-colon when directly preparing statements against a single `Conn`: ```go package main import ( "context" "database/sql" "fmt"...