pgx

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PGX_CONN = object.Type("pgx_conn")

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

Module returns the `pgx` module object

Types

type PgxConn

type PgxConn struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, conn *pgx.Conn) *PgxConn

func (*PgxConn) Close

func (c *PgxConn) Close() error

func (*PgxConn) Equals

func (c *PgxConn) Equals(other object.Object) object.Object

func (*PgxConn) GetAttr

func (c *PgxConn) GetAttr(name string) (object.Object, bool)

func (*PgxConn) Inspect

func (c *PgxConn) Inspect() string

func (*PgxConn) Interface

func (c *PgxConn) Interface() interface{}

func (*PgxConn) IsTruthy

func (c *PgxConn) IsTruthy() bool

func (*PgxConn) Query

func (c *PgxConn) Query(ctx context.Context, args ...object.Object) object.Object

func (*PgxConn) RunOperation

func (c *PgxConn) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*PgxConn) Type

func (c *PgxConn) Type() object.Type

func (*PgxConn) Value

func (c *PgxConn) Value() *pgx.Conn

Jump to

Keyboard shortcuts

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