exprs

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package exprs is the internal package for parsing DynamoDB "expressions", including condition expressions and filter expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Expr

type Expr struct {
	Items []Item
	// contains filtered or unexported fields
}

Expr is a "parsed" expression.

func Parse

func Parse(input string) (*Expr, error)

Parse returns a lexed but not very parsed expression.

type Item

type Item struct {
	Type ItemType
	Pos  int
	Val  string
}

Item is a lexed item.

func (Item) String

func (i Item) String() string

type ItemType

type ItemType int

ItemType of a lexed item.

const (
	ItemError ItemType = iota
	ItemEOF
	ItemText
	ItemQuotedName
	ItemNamePlaceholder
	ItemValuePlaceholder
	ItemMagicLiteral
)

Types of lexed items.

Jump to

Keyboard shortcuts

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