Documentation
¶
Overview ¶
Package ql wraps the modernc.org/ql/driver QL driver. See https://github.com/upper/db/adapter/ql for documentation, particularities and usage examples.
Index ¶
Constants ¶
View Source
const Adapter = `ql`
Adapter is the public name of the adapter.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(sqlDB *sql.DB) (sqlbuilder.Session, error)
New creates a sqlbuilder.Sesion instance by wrapping a *sql.DB value.
func NewTx ¶
func NewTx(sqlTx *sql.Tx) (sqlbuilder.Tx, error)
NewTx creates a sqlbuilder.Tx instance by wrapping a *sql.Tx value.
func Open ¶
func Open(connURL db.ConnectionURL) (sqlbuilder.Session, error)
Open establishes a connection to the database server and returns a sqlbuilder.Session instance (which is compatible with db.Session).
Types ¶
type ConnectionURL ¶
ConnectionURL implements a QL connection struct.
func ParseURL ¶
func ParseURL(s string) (conn ConnectionURL, err error)
ParseURL parses s into a ConnectionURL struct.
func (ConnectionURL) String ¶
func (c ConnectionURL) String() (s string)
Click to show internal directories.
Click to hide internal directories.