Documentation ¶
Overview ¶
Package ql wraps the modernc.org/ql/driver QL driver. See https://upper.io/db.v3/ql for documentation, particularities and usage examples.
Index ¶
Constants ¶
View Source
const Adapter = sqlDriver
Adapter is the public name of the adapter.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(sess *sql.DB) (sqlbuilder.Database, error)
New wraps the given *sql.DB session and creates a new db session.
func Open ¶
func Open(settings db.ConnectionURL) (sqlbuilder.Database, error)
Open stablishes a new connection to a SQL server.
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)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.