go-sqlite3
go-sqlite3 copied to clipboard
sqlite3 driver for go using database/sql
Description I encountered a compilation warning while attempting to build the github.com/mattn/go-sqlite3 package. The warning message is related to the sqlite3-binding.c file, specifically within the sqlite3SelectNew function. The warning suggests...
It took some digging to find out that `NULL` is passed into custom functions as a nil byte slice: https://github.com/mattn/go-sqlite3/blob/f08f1b6b9ce62b2496d8d64df26c1e278887bc1c/callback.go#L229 It would be nice to have this function s.t. future...
Bulk inserts appear to take quadratic time over the number of statements being processed. Using v1.14.16, I find that a bulk insert that finishes quickly for the sqlite3 shell does...
Change bind() to pass sqlite3_bind_text() a pointer to the strings data instead of converting it to a []byte just so a pointer to `&b[0]` can be passed to unsafe.Pointer. Basically,...
This commit fixes an issue where SQLiteConn.{exec,query} would use an exponential amount of memory when processing a prepared statement that consisted of multiple SQL statements (`"stmt 1; stmt 2; ..."`)....
When I run `go build` with sqlite compile time flags such as `CGO_CFLAGS="-DSQLITE_OMIT_AUTOINIT"`, go panics with `unexpected signal during runtime execution`. Is it possible to set sqlite compile time flags?...
Howdy. I'm not sure this really merits a `Issues` or if it would be better as a conversation some place. In using sqlite3 for a project and I noticed that...
When trying to run a query such as: ```sql -- name: AnonymiseOrgAndRepo :exec update renovate set organisation = 'ANON-' || hex(sha3(organisation)), repo = 'ANON-' || hex(sha3(repo)) where organisation NOT LIKE...
Add support for sqlite3_db_readonly(). ```go // Readonly determines if a database is read-only. // (See http://sqlite.org/c3ref/db_readonly.html) func (c *Conn) Readonly(dbName string) (bool, error) { cname := C.CString(dbName) rv := C.sqlite3_db_readonly(c.db,...
A common pain point when using go-sqlite3 is that enabling optional features requires adding a build tag to all `go` command invocations. For instance, when a program depends on FTS5,...