native

package
v0.0.0-...-4eccb2b Latest Latest
Warning

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

Go to latest
Published: Jun 9, 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) 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

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