ucast

package
v1.14.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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