libpq

package
v5.1.0-alpha Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(c *sql.Conn) adapter.Conn

NewConn instantiates new adapter.Conn using github.com/lib/pq

func NewConnPool

func NewConnPool(pool *sql.DB) adapter.ConnPool

NewConnPool instantiates new adapter.ConnPool using github.com/lib/pq

func NewTx

func NewTx(tx *sql.Tx) adapter.Tx

NewTx instantiates new adapter.Tx using github.com/lib/pq

func UnwrapTx

func UnwrapTx(tx adapter.Tx) (*sql.Tx, bool)

UnwrapTx tries to unwrap driver-specific transaction instance from the interface. Returns unwrap success as the second parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL