package sqliteshim
Import Path
github.com/uptrace/bun/driver/sqliteshim (on go.dev)
Dependency Relation
imports 3 packages, and imported by one package
Involved Source Files
modernc.go
Package sqliteshim is a shim package that imports an appropriate sqlite
driver for the build target and registers it under ShimName.
Currently it uses packages in the following order:
• modernc.org/sqlite on supported platforms,
• github.com/mattn/go-sqlite3 if Cgo is enabled,
Otherwise registers a driver that returns an error on unsupported platforms.
Package-Level Type Names (only one, which is exported)
Package-Level Functions (total 4, in which 3 are exported)
Driver returns the shim driver registered under ShimName name.
DriverName is the name of the database/sql driver. Note that unlike ShimName
the value depends on the build target. That is, DriverName returns the name
of the underlying database driver.
HasDriver indicates that SQLite driver implementation is available.
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 3, in which 1 are exported)
ShimName is the name of the shim database/sql driver registration.
![]() |
The pages are generated with Golds v0.3.6. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |