Documentation
¶
Overview ¶
Package pduckdb provides a pure Go DuckDB driver
Index ¶
- type Conn
- func (c *Conn) Begin() (driver.Tx, error)
- func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error)
- func (c *Conn) Close() error
- func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
- func (c *Conn) Ping(ctx context.Context) error
- func (c *Conn) Prepare(query string) (driver.Stmt, error)
- func (c *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error)
- func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error)
- type Driver
- type DuckDB
- type ErrDuckDB
- type Result
- type Rows
- func (r *Rows) Close() error
- func (r *Rows) ColumnTypeDatabaseTypeName(index int) string
- func (r *Rows) ColumnTypeNullable(index int) (nullable, ok bool)
- func (r *Rows) ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool)
- func (r *Rows) ColumnTypeScanType(index int) reflect.Type
- func (r *Rows) Columns() []string
- func (r *Rows) Next(dest []driver.Value) error
- type Stmt
- func (s *Stmt) Close() error
- func (s *Stmt) Exec(args []driver.Value) (driver.Result, error)
- func (s *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error)
- func (s *Stmt) NumInput() int
- func (s *Stmt) Query(args []driver.Value) (driver.Rows, error)
- func (s *Stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error)
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn implements database/sql/driver.Conn
func (*Conn) ExecContext ¶ added in v0.1.1
func (c *Conn) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error)
ExecContext executes a query without returning any rows. Implements driver.ExecerContext
func (*Conn) PrepareContext ¶ added in v0.1.1
PrepareContext returns a prepared statement with context support. Implements driver.ConnPrepareContext
type DuckDB ¶
type DuckDB struct {
// contains filtered or unexported fields
}
DuckDB represents a DuckDB database instance
type ErrDuckDB ¶
type ErrDuckDB struct {
Message string
}
ErrDuckDB represents an error from DuckDB operations
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result implements driver.Result
func (*Result) LastInsertId ¶
LastInsertId returns the database's auto-generated ID.
func (*Result) RowsAffected ¶
RowsAffected returns the number of rows affected.
type Rows ¶
type Rows struct {
// contains filtered or unexported fields
}
Rows implements database/sql/driver.Rows
func (*Rows) ColumnTypeDatabaseTypeName ¶ added in v0.0.7
ColumnTypeDatabaseTypeName returns column type information. Implements RowsColumnTypeDatabaseTypeName
func (*Rows) ColumnTypeNullable ¶ added in v0.0.7
ColumnTypeNullable returns column type information. Implements RowsColumnTypeNullable
func (*Rows) ColumnTypePrecisionScale ¶ added in v0.0.8
ColumnTypePrecisionScale returns column precision and scale. Implements RowsColumnTypePrecisionScale
func (*Rows) ColumnTypeScanType ¶ added in v0.0.7
ColumnTypeScanType returns column type information. Implements RowsColumnTypeScanType
type Stmt ¶
type Stmt struct {
// contains filtered or unexported fields
}
Stmt implements database/sql/driver.Stmt
func (*Stmt) ExecContext ¶
StmtExecContext implements driver.StmtExecContext
func (*Stmt) QueryContext ¶
StmtQueryContext implements driver.StmtQueryContext
Directories
¶
Path | Synopsis |
---|---|
example
|
|
internal
|
|
convert
Package convert provides internal conversion functions for the pduckdb driver
|
Package convert provides internal conversion functions for the pduckdb driver |
duckdb
Package duckdb provides internal implementation details for the go-pduckdb driver.
|
Package duckdb provides internal implementation details for the go-pduckdb driver. |