Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2026 License: MIT Imports: 3 Imported by: 0

README

sqlite

This package provides support for native Go SQLite3 as well as various functions to provide compatibility with other databases.

GitHub tag (latest SemVer) PkgGoDev

The level of compatibility is based on our internal needs. Just because a function is missing doesn't mean that it can't be added. Submit a PR to add more support.

Targeted databases:

  1. MySQL
  2. BigQuery

Do The Right Thing

To get full compatibility with as much as possible, simply import this package:

import (
	_ "github.com/tekkamanendless/sqlite"
)

Specific Support

Due to the way that the https://gitlab.com/cznic/sqlite (modernc.org/sqlite) package works, we can only have one global implementation registered.

To manually register functions, you can use:

import (
	"github.com/tekkamanendless/sqlite/compatibility"
)

err := compatibility.Register(
	compatibility.OptionMySQL(),
	compatibility.OptionBigQuery(),
)

Gorm Driver

To use this with Gorm, use the Gorm driver.

import (
	"github.com/tekkamanendless/sqlite/driver/gorm/sqlite"
	"gorm.io/gorm"
)

connectionString := "file:testdatabase.db?mode=memory"
db, err := gorm.Open(sqlite.Open(connectionString), &gorm.Config{})

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
driver

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL