ucast

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldRef

type FieldRef struct {
	Field string `json:"field"`
}

FieldRef can be used in UCASTNode.Value to reference another field, i.e. database column.

type Null

type Null struct{}

Null represents a NULL value in a SQL query. We need our own type to control both the JSON marshalling and the SQL generation.

func (Null) MarshalJSON

func (Null) MarshalJSON() ([]byte, error)

type UCASTNode

type UCASTNode struct {
	Type  string `json:"type"`
	Op    string `json:"operator"`
	Field string `json:"field,omitempty"`
	Value any    `json:"value,omitempty"`
}

The "union" structure for incoming UCAST trees.

func (*UCASTNode) AsSQL

func (u *UCASTNode) AsSQL(dialect string) (string, error)

Jump to

Keyboard shortcuts

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