Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSQL = status.Error(codes.InvalidArgument, "invalid SQL statement")
)
Functions ¶
This section is empty.
Types ¶
type BatchGuard ¶
type BatchGuard struct {
// contains filtered or unexported fields
}
func NewBatchGuard ¶
func NewBatchGuard(b arrow.RecordBatch) *BatchGuard
func (*BatchGuard) Release ¶
func (g *BatchGuard) Release()
func (*BatchGuard) Retain ¶
func (g *BatchGuard) Retain() arrow.RecordBatch
type Engine ¶
type Engine interface {
BuildStream(ctx context.Context, sql string, params arrow.RecordBatch) (*arrow.Schema, <-chan StreamChunk, error)
IngestStream(ctx context.Context, table string, reader array.RecordReader, opts IngestOptions) (int64, error)
AcquireQuerySlot(ctx context.Context) error
ReleaseQuerySlot()
DeriveSchema(ctx context.Context, sql string) (*arrow.Schema, error)
ExecuteUpdate(ctx context.Context, sql string) (int64, error)
Allocator() memory.Allocator
Close() error
}
type IngestOptions ¶ added in v0.21.0
type StreamChunk ¶
type StreamChunk = flight.StreamChunk
Click to show internal directories.
Click to hide internal directories.