Documentation
¶
Index ¶
- func ColumnValue(a arrow.Array, i int) any
- func RecordToJSON(rec arrow.Record, asArray bool, w io.Writer) error
- type Arrow
- type ArrowTable
- func (t *ArrowTable) Append(rec arrow.Record)
- func (t *ArrowTable) Chunk(i int) arrow.Record
- func (t *ArrowTable) DecodeMsgpack(dec *msgpack.Decoder) error
- func (t *ArrowTable) EncodeMsgpack(enc *msgpack.Encoder) error
- func (t *ArrowTable) MarshalJSON() ([]byte, error)
- func (t *ArrowTable) NumChunks() int
- func (t *ArrowTable) NumCols() int
- func (t *ArrowTable) NumRows() int
- func (t *ArrowTable) Release()
- func (t *ArrowTable) RowData(i int) (map[string]any, bool)
- func (t *ArrowTable) SetAutoRelease(release bool)
- 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 ...any) (sql.Result, error)
- func (c *Connection) Query(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (c *Connection) QueryRow(ctx context.Context, query string, args ...any) *sql.Row
- 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) QueryArrowTable(ctx context.Context, q string, wrap bool, params ...any) (any, error)
- 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) (*ArrowTable, error)
- func (db *Pool) QueryJsonTableArrow(ctx context.Context, q string, wrap bool, params ...any) (*ArrowTable, 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 ArrowTable ¶ added in v0.1.5
type ArrowTable struct {
// contains filtered or unexported fields
}
func NewDBJsonTable ¶
func NewDBJsonTable(releaseAfterMarshal bool) *ArrowTable
func (*ArrowTable) Append ¶ added in v0.1.5
func (t *ArrowTable) Append(rec arrow.Record)
func (*ArrowTable) DecodeMsgpack ¶ added in v0.1.5
func (t *ArrowTable) DecodeMsgpack(dec *msgpack.Decoder) error
func (*ArrowTable) EncodeMsgpack ¶ added in v0.1.5
func (t *ArrowTable) EncodeMsgpack(enc *msgpack.Encoder) error
func (*ArrowTable) MarshalJSON ¶ added in v0.1.5
func (t *ArrowTable) MarshalJSON() ([]byte, error)
func (*ArrowTable) NumChunks ¶ added in v0.1.5
func (t *ArrowTable) NumChunks() int
func (*ArrowTable) NumCols ¶ added in v0.1.5
func (t *ArrowTable) NumCols() int
func (*ArrowTable) NumRows ¶ added in v0.1.5
func (t *ArrowTable) NumRows() int
func (*ArrowTable) Release ¶ added in v0.1.5
func (t *ArrowTable) Release()
func (*ArrowTable) RowData ¶ added in v0.1.5
func (t *ArrowTable) RowData(i int) (map[string]any, bool)
func (*ArrowTable) SetAutoRelease ¶ added in v0.1.5
func (t *ArrowTable) SetAutoRelease(release bool)
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 Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) QueryArrowTable ¶ added in v0.1.5
func (*Pool) QueryJsonRow ¶
func (*Pool) QueryJsonScalarArray ¶
func (*Pool) QueryJsonScalarArrayArrow ¶
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.