Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnMeta ¶
ColumnMeta holds metadata for a single result column.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine executes SQL queries via DuckDB and returns Arrow results.
type QueryResult ¶
type QueryResult struct {
QueryID string
Columns []ColumnMeta
Rows [][]string
TotalRows int64
Records []arrow.Record
}
QueryResult holds the output of a SQL execution.
func BuildFromReader ¶
func BuildFromReader(reader array.RecordReader, limit int) (*QueryResult, error)
BuildFromReader reads all record batches from a reader and builds the preview rows up to the given limit.
func (*QueryResult) Release ¶
func (r *QueryResult) Release()
Release releases all Arrow records held by the result.
Click to show internal directories.
Click to hide internal directories.