prolog

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertObjects

func InsertObjects[TResult any](r *Runner, objs ...TResult) error

func RunTypedQuery

func RunTypedQuery[TResult any](r *Runner, query string) ([]TResult, error)

func TypedList

func TypedList[TResult any](r *Runner) ([]TResult, error)

func TypedListFilter

func TypedListFilter[TResult any](r *Runner, filters ...string) ([]TResult, error)

Types

type Runner

type Runner struct {
	Interpreter *prolog.Interpreter
	DbText      string
}

func NewRunner

func NewRunner(db string) (*Runner, error)

func (*Runner) AppendReplace

func (r *Runner) AppendReplace(prolog string) (*Runner, error)

func (*Runner) NewRunnerWith

func (r *Runner) NewRunnerWith(prolog string) (*Runner, error)

func (*Runner) Query

func (r *Runner) Query(query string) ([]map[string]any, error)

func (*Runner) RebuildRunnerWith

func (r *Runner) RebuildRunnerWith(prolog string) (*Runner, error)

Jump to

Keyboard shortcuts

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