engine

package
v0.0.0-...-34a1f11 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(ctx context.Context, cfg *Options) (*engine, error)

Types

type Engine

type Engine interface {
	Ping(ctx context.Context) error
	Schemas(ctx context.Context) ([]string, error)
	Tables(ctx context.Context, schema string) ([]string, error)
	TableData(ctx context.Context, schema, table string, limit int) (*TableData, error)
}

type Options

type Options struct {
	Addr             string
	MaxRows          int
	ReadOnly         bool
	StatementTimeout time.Duration
}

type TableData

type TableData struct {
	Columns  []string
	Rows     [][]any
	RowCount int
}

Jump to

Keyboard shortcuts

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