You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dorm/vendor/github.com/uptrace/bun/driver/sqliteshim
李光春 fc26802071
continuous-integration/drone/push Build is failing Details
- update
2 years ago
..
LICENSE - update 2 years ago
README.md - update 2 years ago
mattn.go - update 2 years ago
modernc.go - update 2 years ago
other.go - update 2 years ago
sqliteshim.go - update 2 years ago
test.sh - update 2 years ago

README.md

sqliteshim

PkgGoDev

sqliteshim automatically imports modernc.org/sqlite or mattn/go-sqlite3 depending on your platform.

Currently sqliteshim uses packages in the following order:

Otherwise it registers a driver that returns an error on unsupported platforms.

You can install sqliteshim with:

go get github.com/uptrace/bun/driver/sqliteshim

And then create a sql.DB:

sqldb, err := sql.Open(sqliteshim.ShimName, "file::memory:?cache=shared")

Alternatively you can also use sqliteshim.DriverName:

if sqliteshim.HasDriver() {
	sqldb, err := sql.Open(sqliteshim.DriverName(), "file::memory:?cache=shared")
}