Documentation
¶
Index ¶
- Constants
- func Connect(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- type PgxConn
- func (c *PgxConn) Close() error
- func (c *PgxConn) Cost() int
- func (c *PgxConn) Equals(other object.Object) object.Object
- func (c *PgxConn) Exec(ctx context.Context, args ...object.Object) object.Object
- func (c *PgxConn) GetAttr(name string) (object.Object, bool)
- func (c *PgxConn) Inspect() string
- func (c *PgxConn) Interface() interface{}
- func (c *PgxConn) IsTruthy() bool
- func (c *PgxConn) MarshalJSON() ([]byte, error)
- func (c *PgxConn) Query(ctx context.Context, args ...object.Object) object.Object
- func (c *PgxConn) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (c *PgxConn) SetAttr(name string, value object.Object) error
- func (c *PgxConn) Type() object.Type
- func (c *PgxConn) Value() *pgx.Conn
- type RowIterator
- func (ri *RowIterator) Close()
- func (ri *RowIterator) Cost() int
- func (ri *RowIterator) Entry() (object.IteratorEntry, bool)
- func (ri *RowIterator) Equals(other object.Object) object.Object
- func (ri *RowIterator) GetAttr(name string) (object.Object, bool)
- func (ri *RowIterator) Inspect() string
- func (ri *RowIterator) Interface() interface{}
- func (ri *RowIterator) IsTruthy() bool
- func (ri *RowIterator) MarshalJSON() ([]byte, error)
- func (ri *RowIterator) Next(ctx context.Context) (object.Object, bool)
- func (ri *RowIterator) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (ri *RowIterator) SetAttr(name string, value object.Object) error
- func (ri *RowIterator) Type() object.Type
Constants ¶
View Source
const PGX_CONN = object.Type("pgx.conn")
View Source
const PGX_ROW_ITERATOR = object.Type("pgx.row_iterator")
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PgxConn ¶
type PgxConn struct {
// contains filtered or unexported fields
}
func (*PgxConn) MarshalJSON ¶
func (*PgxConn) RunOperation ¶
type RowIterator ¶ added in v1.8.0
type RowIterator struct {
// contains filtered or unexported fields
}
func NewRowIterator ¶ added in v1.8.0
func NewRowIterator(ctx context.Context, rows pgx.Rows) *RowIterator
func (*RowIterator) Close ¶ added in v1.8.0
func (ri *RowIterator) Close()
func (*RowIterator) Cost ¶ added in v1.8.0
func (ri *RowIterator) Cost() int
func (*RowIterator) Entry ¶ added in v1.8.0
func (ri *RowIterator) Entry() (object.IteratorEntry, bool)
Entry implements the object.Iterator interface. Returns an IteratorEntry for the current row and a bool indicating success.
func (*RowIterator) Equals ¶ added in v1.8.0
func (ri *RowIterator) Equals(other object.Object) object.Object
func (*RowIterator) GetAttr ¶ added in v1.8.0
func (ri *RowIterator) GetAttr(name string) (object.Object, bool)
func (*RowIterator) Inspect ¶ added in v1.8.0
func (ri *RowIterator) Inspect() string
func (*RowIterator) Interface ¶ added in v1.8.0
func (ri *RowIterator) Interface() interface{}
func (*RowIterator) IsTruthy ¶ added in v1.8.0
func (ri *RowIterator) IsTruthy() bool
func (*RowIterator) MarshalJSON ¶ added in v1.8.0
func (ri *RowIterator) MarshalJSON() ([]byte, error)
func (*RowIterator) Next ¶ added in v1.8.0
Next implements the object.Iterator interface. Advances the iterator and returns the current row and a bool indicating success.
func (*RowIterator) RunOperation ¶ added in v1.8.0
func (ri *RowIterator) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
func (*RowIterator) SetAttr ¶ added in v1.8.0
func (ri *RowIterator) SetAttr(name string, value object.Object) error
func (*RowIterator) Type ¶ added in v1.8.0
func (ri *RowIterator) Type() object.Type
Click to show internal directories.
Click to hide internal directories.