aqlBuilder

package
v0.0.0-...-4399d21 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Ascending = "ASC"

TODO: These should probably be they're own type

View Source
const Descending = "DESC"

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

func NewBuilder

func NewBuilder(collectionName string) Builder

func (*Builder) Build

func (b *Builder) Build() string

TODO: Should probably do something about each With* function adding a new line at the end then trimming the remaining new lines

func (*Builder) Execute

func (b *Builder) Execute() (driver.Cursor, error)

func (*Builder) WithAndFilterCondition

func (b *Builder) WithAndFilterCondition(fields map[string]interface{})

func (*Builder) WithInsert

func (b *Builder) WithInsert(fields map[string]interface{})

func (*Builder) WithLimit

func (b *Builder) WithLimit(offset, limit uint)

func (*Builder) WithLoopStatement

func (b *Builder) WithLoopStatement()

func (*Builder) WithRemove

func (b *Builder) WithRemove()

func (*Builder) WithReturnFields

func (b *Builder) WithReturnFields(fields []string)

func (*Builder) WithSortFields

func (b *Builder) WithSortFields(fields map[string]string)

func (*Builder) WithUpdate

func (b *Builder) WithUpdate(fields map[string]interface{})

Jump to

Keyboard shortcuts

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