go-sqlite3 icon indicating copy to clipboard operation
go-sqlite3 copied to clipboard

sqlite3 driver for go using database/sql

Results 231 go-sqlite3 issues
Sort by recently updated
recently updated
newest added

I believe the example at [_examples/json/json.go](https://github.com/mattn/go-sqlite3/blob/7658c06970ecf5588d8cd930ed1f2de7223f1010/_example/json/json.go) may be misleading. It declares a table as `create table foo (tag jsonb)`, but since the table isn't declared as `strict`, [the type is...

This commit improves the performance of queries by at least 15% by only collecting the information needed to convert sqlite3 values to Go values and by batching CGO calls when...

This commit reduces the number of allocations and memory usage of QueryContext by inverting the goroutine: instead of processing the request in the goroutine and having it send the result,...

I am working on a project that would like to turn checksumming on in SQLite, using the checksum VFS shim (see https://www.sqlite.org/cksumvfs.html). This extension isn't in the amalgamation and can...

When the size of db exceeds 2G (approximately the size of`int32`), the call of `Serialize` (also `Deserialize`) will fail. Here is a minimal poc to reproduce the problem ``` golang...

So I've been learning Go but I'm not a go Developer, but I needed Sqlcipher and all of the other packages that use it seem to no longer be maintained....

This commit fixes a bug in {SQLiteConn,SQLiteStmt}.Close that would lead to the runtime finalizer not being removed if there was an error closing the connection or statement. This commit also...

Right now, whenever this library gets an error code from a SQLite operation, it drops it on the floor and calls `lastError`, which in turn calls `sqlite3_errcode`, `sqlite3_extended_errcode`, `sqlite3_errmsg`, and...

Go `int` and C `int` are not guaranteed to be the same size. But right now `SetFileControlInt` blindly casts an `int` to a `C.int`, which can overflow or underflow. This...

# github.com/mattn/go-sqlite3 sqlite3-binding.c:216662:10: fatal error: unicode/utypes.h: No such file or directory 216662 | #include | ^~~~~~~~~~~~~~~~~~ compilation terminated. step: 1.download it and uncompress https://github.com/unicode-org/icu/releases/download/release-76-1/icu4c-76_1-Win64-MSVC2022.zip 2.`set CGO_CFLAGS='-Iicu4c_win\include'` 3.`set CGO_LDFLAGS='-Licu4c_win\lib64'` 4.go build...