mockn1ql

package
v0.0.1-79 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	Indexes []*Index
}

Engine represents the mock query engine.

func (*Engine) Execute

func (e *Engine) Execute(opts ExecuteOptions) (*ExecuteResults, error)

Execute executes a query.

type ExecuteOptions

type ExecuteOptions struct {
	Data map[string]*mockdb.Bucket
}

ExecuteOptions provides options when executing an query.

type ExecuteResults

type ExecuteResults struct {
	Rows []interface{}
}

ExecuteResults provides the results from an executed query.

type Index

type Index struct {
	BucketName string
	Fields     []string
}

Index represents a single view index.

Jump to

Keyboard shortcuts

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