query

package
v0.10.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct{}

Object Javascript API

func New

func New() *Object

New create a new Query Object

func (*Object) ExportFunction

func (obj *Object) ExportFunction(iso *v8go.Isolate) *v8go.FunctionTemplate

ExportFunction Export as a javascript Cache function var query = new Query("engine")

func (*Object) ExportObject

func (obj *Object) ExportObject(iso *v8go.Isolate) *v8go.ObjectTemplate

ExportObject Export as a Cache Object var query = new Query("engine") query.Get({"select":["id"], "from":"user", "limit":1}) query.Paginate({"select":["id"], "from":"user"}) query.First({"select":["id"], "from":"user"}) query.Run({"stmt":"show version"})

Jump to

Keyboard shortcuts

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