Documentation
¶
Index ¶
- func ColumnValue(a arrow.Array, i int) any
- func RecordToJSON(rec arrow.Record, asArray bool, w io.Writer) error
- type Arrow
- type Config
- type Connection
- func (c *Connection) Close() error
- func (c *Connection) DBConn() *sql.Conn
- func (c *Connection) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (c *Connection) Query(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (c *Connection) QueryRow(ctx context.Context, query string, args ...interface{}) *sql.Row
- type DBJsonTable
- func (t *DBJsonTable) Append(rec arrow.Record)
- func (t *DBJsonTable) Chunk(i int) arrow.Record
- func (t *DBJsonTable) DecodeMsgpack(dec *msgpack.Decoder) error
- func (t *DBJsonTable) EncodeMsgpack(enc *msgpack.Encoder) error
- func (t *DBJsonTable) MarshalJSON() ([]byte, error)
- func (t *DBJsonTable) NumChunks() int
- func (t *DBJsonTable) NumCols() int
- func (t *DBJsonTable) NumRows() int
- func (t *DBJsonTable) Release()
- func (t *DBJsonTable) RowData(i int) (map[string]any, bool)
- type JsonValue
- type Pool
- func (p *Pool) Arrow(ctx context.Context) (*Arrow, error)
- func (p *Pool) Close() error
- func (p *Pool) Commit(ctx context.Context) error
- func (p *Pool) Conn(ctx context.Context) (*Connection, error)
- func (p *Pool) Connector() *duckdb.Connector
- func (p *Pool) Exec(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (p *Pool) IsTxContext(ctx context.Context) bool
- func (db *Pool) QueryJsonRow(ctx context.Context, q string, params ...any) (*JsonValue, error)
- func (db *Pool) QueryJsonScalarArray(ctx context.Context, q string, params ...any) (any, error)
- func (db *Pool) QueryJsonScalarArrayArrow(ctx context.Context, q string, params ...any) (*DBJsonTable, error)
- func (db *Pool) QueryJsonTable(ctx context.Context, q string, wrap bool, params ...any) (any, error)
- func (db *Pool) QueryJsonTableArrow(ctx context.Context, q string, wrap bool, params ...any) (*DBJsonTable, error)
- func (db *Pool) QueryRowToData(ctx context.Context, data any, q string, params ...any) error
- func (db *Pool) QueryTableToSlice(ctx context.Context, data any, q string, params ...any) error
- func (p *Pool) Rollback(ctx context.Context) error
- func (p *Pool) SetMaxIdleConns(n int)
- func (p *Pool) SetMaxOpenConns(n int)
- func (p *Pool) WithTx(parent context.Context) (context.Context, error)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connection ¶
type Connection struct {
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) DBConn ¶
func (c *Connection) DBConn() *sql.Conn
type DBJsonTable ¶
type DBJsonTable struct {
// contains filtered or unexported fields
}
func NewDBJsonTable ¶
func NewDBJsonTable(releaseAfterMarshal bool) *DBJsonTable
func (*DBJsonTable) Append ¶
func (t *DBJsonTable) Append(rec arrow.Record)
func (*DBJsonTable) DecodeMsgpack ¶
func (t *DBJsonTable) DecodeMsgpack(dec *msgpack.Decoder) error
func (*DBJsonTable) EncodeMsgpack ¶
func (t *DBJsonTable) EncodeMsgpack(enc *msgpack.Encoder) error
func (*DBJsonTable) MarshalJSON ¶
func (t *DBJsonTable) MarshalJSON() ([]byte, error)
func (*DBJsonTable) NumChunks ¶
func (t *DBJsonTable) NumChunks() int
func (*DBJsonTable) NumCols ¶
func (t *DBJsonTable) NumCols() int
func (*DBJsonTable) NumRows ¶
func (t *DBJsonTable) NumRows() int
func (*DBJsonTable) Release ¶
func (t *DBJsonTable) Release()
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) QueryJsonRow ¶
func (*Pool) QueryJsonScalarArray ¶
func (*Pool) QueryJsonScalarArrayArrow ¶
func (*Pool) QueryJsonTable ¶
func (*Pool) QueryJsonTableArrow ¶
func (*Pool) QueryRowToData ¶
func (*Pool) QueryTableToSlice ¶
func (*Pool) SetMaxIdleConns ¶
func (*Pool) SetMaxOpenConns ¶
Click to show internal directories.
Click to hide internal directories.