engine

package
v0.2.1-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSelect = errors.New("only a single SELECT statement is allowed")

Functions

This section is empty.

Types

type Engine

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

func Open

func Open(ctx context.Context, opts Options) (*Engine, error)

func (*Engine) Close

func (e *Engine) Close() error

func (*Engine) Query

func (e *Engine) Query(ctx context.Context, query string, maxRows int, args ...any) (Result, error)

type Options

type Options struct {
	AllowedDir string
	// DataDir, when set, builds the logs and spans views from its manifests; unscoped, AllowedDir must lie within <DataDir>/services.
	DataDir string
	// Service scopes the views to one service; AllowedDir must then contain that service's directory.
	Service     string
	MemoryLimit string
	Threads     int
	// Timeout bounds each query.
	Timeout time.Duration
}

type Result

type Result struct {
	Columns   []string
	Rows      [][]any
	Truncated bool
}

Jump to

Keyboard shortcuts

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