validation

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition struct {
	Alias              string
	Value              string
	Column             string
	DataType           string
	ComparisonOperator string
	LogicalOperator    string
}

type Limit

type Limit = int64

type Metadata

type Metadata struct {
	SelectedColumns []SelectableColumn
	FilePath        string
	Alias           string
	Conditions      []Condition
	OrderBy         *OrderBy
	Limit           Limit
	Offset          Offset
}

func ValidateAndCreateMetadata

func ValidateAndCreateMetadata(tokens []string) (Metadata, error)

type Offset

type Offset = int64

type OrderBy

type OrderBy struct {
	Columns   []OrderByColumn
	Direction string
}

type OrderByColumn

type OrderByColumn struct {
	Alias  string
	Column string
}

type SelectableColumn

type SelectableColumn struct {
	Alias    string
	Column   string
	Original string
}

Jump to

Keyboard shortcuts

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