Documentation ¶
Overview ¶
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.
Index ¶
Constants ¶
View Source
const ShimName = "sqliteshim"
ShimName is the name of the shim database/sql driver registration.
Variables ¶
This section is empty.
Functions ¶
func DriverName ¶
func DriverName() string
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.
Types ¶
type UnsupportedError ¶
type UnsupportedError struct{}
UnsupportedError is returned from driver on unsupported platforms.
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.