adbc

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2026 License: Unlicense Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	OptionKeyStore = "longbow.store"
)

Variables

This section is empty.

Functions

func NewDatabase

func NewDatabase(opts map[string]string) (adbc.Database, error)

func NewDatabaseWithStore

func NewDatabaseWithStore(vs *store.VectorStore, logger zerolog.Logger) adbc.Database

func NewDriver

func NewDriver() adbc.Driver

Types

type AdbcRecordReader

type AdbcRecordReader struct {
	// contains filtered or unexported fields
}

func NewAdbcRecordReader

func NewAdbcRecordReader(schema *arrow.Schema, records []arrow.RecordBatch) (*AdbcRecordReader, error)

func (*AdbcRecordReader) Err

func (r *AdbcRecordReader) Err() error

func (*AdbcRecordReader) Next

func (r *AdbcRecordReader) Next() bool

func (*AdbcRecordReader) Record

func (r *AdbcRecordReader) Record() arrow.RecordBatch

func (*AdbcRecordReader) RecordBatch

func (r *AdbcRecordReader) RecordBatch() arrow.RecordBatch

func (*AdbcRecordReader) Release

func (r *AdbcRecordReader) Release()

func (*AdbcRecordReader) Retain

func (r *AdbcRecordReader) Retain()

func (*AdbcRecordReader) Schema

func (r *AdbcRecordReader) Schema() *arrow.Schema

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

func (*Connection) Close

func (c *Connection) Close() error

func (*Connection) Commit

func (c *Connection) Commit(ctx context.Context) error

func (*Connection) FlightServer

func (c *Connection) FlightServer() flight.FlightServer

func (*Connection) GetInfo

func (c *Connection) GetInfo(ctx context.Context, infoCodes []adbc.InfoCode) (array.RecordReader, error)

func (*Connection) GetObjects

func (c *Connection) GetObjects(ctx context.Context, depth adbc.ObjectDepth, catalog, dbSchema, tableName, columnName *string, tableType []string) (array.RecordReader, error)

func (*Connection) GetTableSchema

func (c *Connection) GetTableSchema(ctx context.Context, catalog, dbSchema *string, tableName string) (*arrow.Schema, error)

func (*Connection) GetTableTypes

func (c *Connection) GetTableTypes(ctx context.Context) (array.RecordReader, error)

func (*Connection) NewStatement

func (c *Connection) NewStatement() (adbc.Statement, error)

func (*Connection) ReadPartition

func (c *Connection) ReadPartition(ctx context.Context, serializedPartition []byte) (array.RecordReader, error)

func (*Connection) Rollback

func (c *Connection) Rollback(ctx context.Context) error

func (*Connection) SetOption

func (c *Connection) SetOption(key, value string) error

type Database

type Database struct {
	// contains filtered or unexported fields
}

func (*Database) Close

func (d *Database) Close() error

func (*Database) GetOption

func (d *Database) GetOption(key string) (string, error)

func (*Database) GetOptionBytes

func (d *Database) GetOptionBytes(key string) ([]byte, error)

func (*Database) GetOptionDouble

func (d *Database) GetOptionDouble(key string) (float64, error)

func (*Database) GetOptionInt

func (d *Database) GetOptionInt(key string) (int64, error)

func (*Database) Open

func (d *Database) Open(ctx context.Context) (adbc.Connection, error)

func (*Database) SetLogger

func (d *Database) SetLogger(logger zerolog.Logger)

func (*Database) SetOption

func (d *Database) SetOption(key, value string) error

func (*Database) SetOptionBytes

func (d *Database) SetOptionBytes(key string, value []byte) error

func (*Database) SetOptionDouble

func (d *Database) SetOptionDouble(key string, value float64) error

func (*Database) SetOptionInt

func (d *Database) SetOptionInt(key string, value int64) error

func (*Database) SetOptions

func (d *Database) SetOptions(opts map[string]string) error

func (*Database) SetVectorStore

func (d *Database) SetVectorStore(vs *store.VectorStore)

func (*Database) String

func (d *Database) String() string

func (*Database) VectorStore

func (d *Database) VectorStore() *store.VectorStore

type Driver

type Driver struct{}

func (*Driver) NewDatabase

func (d *Driver) NewDatabase(opts map[string]string) (adbc.Database, error)

type Statement

type Statement struct {
	// contains filtered or unexported fields
}

func (*Statement) Bind

func (s *Statement) Bind(ctx context.Context, values arrow.RecordBatch) error

func (*Statement) BindStream

func (s *Statement) BindStream(ctx context.Context, stream array.RecordReader) error

func (*Statement) Close

func (s *Statement) Close() error

func (*Statement) ExecutePartitions

func (s *Statement) ExecutePartitions(ctx context.Context) (*arrow.Schema, adbc.Partitions, int64, error)

func (*Statement) ExecuteQuery

func (s *Statement) ExecuteQuery(ctx context.Context) (array.RecordReader, int64, error)

func (*Statement) ExecuteSchema

func (s *Statement) ExecuteSchema(ctx context.Context) (*arrow.Schema, error)

ExecuteSchema gets the schema of the result set of a query without executing it (ADBC 1.1.0).

func (*Statement) ExecuteUpdate

func (s *Statement) ExecuteUpdate(ctx context.Context) (int64, error)

func (*Statement) GetParameterSchema

func (s *Statement) GetParameterSchema() (*arrow.Schema, error)

func (*Statement) Prepare

func (s *Statement) Prepare(ctx context.Context) error

func (*Statement) SetOption

func (s *Statement) SetOption(key, value string) error

func (*Statement) SetSqlQuery

func (s *Statement) SetSqlQuery(query string) error

func (*Statement) SetSubstraitPlan

func (s *Statement) SetSubstraitPlan(plan []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL