internal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PatternToRegexp

func PatternToRegexp(pattern *string) (*regexp.Regexp, error)

Helper function that compiles a SQL-style pattern (%, _) to a regex

Types

type CatalogAndSchema

type CatalogAndSchema struct {
	Catalog, Schema string
}

type GetObjDBSchemasFn

type GetObjDBSchemasFn func(ctx context.Context, depth adbc.ObjectDepth, catalog *string, schema *string) (map[string][]string, error)

type GetObjTablesFn

type GetObjTablesFn func(ctx context.Context, depth adbc.ObjectDepth, catalog *string, schema *string, tableName *string, columnName *string, tableType []string) (map[CatalogAndSchema][]TableInfo, error)

type GetObjects

type GetObjects struct {
	Ctx        context.Context
	Depth      adbc.ObjectDepth
	Catalog    *string
	DbSchema   *string
	TableName  *string
	ColumnName *string
	TableType  []string
	// contains filtered or unexported fields
}

Helper to store state needed for GetObjects

func (*GetObjects) AppendCatalog

func (g *GetObjects) AppendCatalog(catalogName string)

func (*GetObjects) Finish

func (g *GetObjects) Finish() (array.RecordReader, error)

func (*GetObjects) Init

func (g *GetObjects) Init(mem memory.Allocator, getObj GetObjDBSchemasFn, getTbls GetObjTablesFn) error

func (*GetObjects) Release

func (g *GetObjects) Release()

type SchemaToTableInfo

type SchemaToTableInfo = map[CatalogAndSchema][]TableInfo

type TableInfo

type TableInfo struct {
	Name, TableType string
	Schema          *arrow.Schema
}

Jump to

Keyboard shortcuts

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