native

package
v0.530100.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

func (*Connection) Close

func (conn *Connection) Close()

func (*Connection) DeregisterTable added in v0.530100.2

func (conn *Connection) DeregisterTable(name string) error

DeregisterTable removes a table previously registered on the connection's session. Removing a name that is not registered is not an error.

func (*Connection) Prepare

func (conn *Connection) Prepare(query string) (*Statement, error)

func (*Connection) RegisterArrowIPC

func (conn *Connection) RegisterArrowIPC(name string, data []byte) error

func (*Connection) RegisterArrowReaderZeroCopy

func (conn *Connection) RegisterArrowReaderZeroCopy(name string, reader array.RecordReader) error

func (*Connection) RegisterFFITableProvider added in v0.530100.2

func (conn *Connection) RegisterFFITableProvider(name string, provider unsafe.Pointer, providerDataFusionVersion string) error

RegisterFFITableProvider registers a foreign datafusion-ffi FFI_TableProvider (produced by another library) under name. provider must point to a valid FFI_TableProvider; the callee clones it, so the caller retains ownership of the pointer. providerDataFusionVersion is the datafusion version the producing library reports, checked against the native library's version before the provider is dereferenced. The producing library must stay loaded for as long as the table is registered, since the registered table calls back into it on every scan. See datafusion.RegisterFFITableProvider for the full contract.

type Database

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

func OpenDatabase

func OpenDatabase(dsn string) (*Database, error)

func (*Database) Close

func (db *Database) Close()

func (*Database) Connect

func (db *Database) Connect(shared bool) (*Connection, error)

type DateParameter

type DateParameter struct {
	Days int32
}

type DecimalParameter

type DecimalParameter struct {
	Value     string
	Precision uint8
	Scale     int8
}

type DurationParameter

type DurationParameter struct {
	Nanoseconds int64
}

type Error

type Error struct {
	Kind    string
	Message string
}

func (*Error) Error

func (e *Error) Error() string

func (*Error) Is

func (e *Error) Is(target error) bool

func (*Error) NativeErrorKind

func (e *Error) NativeErrorKind() string

type NullParameter

type NullParameter struct {
	Type      ParameterType
	Precision uint8
	Scale     int8
	TimeZone  string
}

type ParameterType

type ParameterType int32
const (
	ParameterBool ParameterType = iota + 1
	ParameterInt64
	ParameterUInt64
	ParameterFloat64
	ParameterString
	ParameterBinary
	ParameterDate
	ParameterTime
	ParameterTimestamp
	ParameterDuration
	ParameterDecimal
)

type Statement

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

func (*Statement) Close

func (stmt *Statement) Close()

func (*Statement) ExecuteArrow

func (stmt *Statement) ExecuteArrow(ctx context.Context, args []driver.NamedValue) (arrio.Reader, error)

func (*Statement) NumInput

func (stmt *Statement) NumInput() int

func (*Statement) Serializes

func (stmt *Statement) Serializes() bool

type TimeParameter

type TimeParameter struct {
	Nanoseconds int64
}

type TimestampParameter

type TimestampParameter struct {
	Nanoseconds int64
	TimeZone    string
}

type UInt64Parameter

type UInt64Parameter struct {
	Value uint64
}

Jump to

Keyboard shortcuts

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