pgd

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

Add builds SQL addition while retaining both operand expressions.

func And

func And(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

And builds a SQL conjunction while retaining both operand expressions.

func Any

func Any(expr pgsql.Expression, castType pgsql.DataType) *pgsql.AnyExpression

Any builds an ANY expression with the requested cast type and retained operand.

func Column

func Column(root, column pgsql.Identifier) pgsql.CompoundIdentifier

Column qualifies a column identifier with its relation or record identifier.

func Concatenate

func Concatenate(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

Concatenate builds the SQL concatenation operator for the supplied operands.

func EdgeHasKind

func EdgeHasKind(edge pgsql.Identifier, kindID int16) *pgsql.BinaryExpression

EdgeHasKind compares the edge kind_id column with a typed kind identifier.

func EndID

func EndID(identifier pgsql.Identifier) pgsql.CompoundIdentifier

EndID selects the relationship end-node identifier column.

func EntityID

func EntityID(identifier pgsql.Identifier) pgsql.CompoundIdentifier

EntityID selects the entity identifier column of the supplied relation.

func Equals

func Equals(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

Equals builds SQL equality, including PostgreSQL's null propagation.

func ExpressionArrayLiteral

func ExpressionArrayLiteral(values ...pgsql.Expression) pgsql.ArrayLiteral

ExpressionArrayLiteral wraps the expression slice as an array literal without copying its elements.

func GreaterThan

func GreaterThan(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

GreaterThan builds a strict SQL lower-bound comparison.

func GreaterThanOrEqualTo

func GreaterThanOrEqualTo(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

GreaterThanOrEqualTo builds an inclusive SQL lower-bound comparison.

func IntLiteral

func IntLiteral[T int | int16 | int32 | int64](literal T) pgsql.Literal

IntLiteral selects the PostgreSQL integer type corresponding to the Go integer width.

func LessThan

func LessThan(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

LessThan builds a strict SQL ordering comparison of the supplied operands.

func LessThanOrEqualTo

func LessThanOrEqualTo(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression

LessThanOrEqualTo builds an inclusive SQL upper-bound comparison.

func Not

func Not(operand pgsql.Expression) *pgsql.UnaryExpression

Not builds SQL logical negation while retaining the operand expression.

func Properties

func Properties(identifier pgsql.Identifier) pgsql.CompoundIdentifier

Properties selects the JSON property column of the supplied entity.

func PropertyLookup

func PropertyLookup(owner pgsql.Identifier, propertyName string) *pgsql.BinaryExpression

PropertyLookup builds a text-valued JSON property lookup on the owner's properties column.

func StartID

func StartID(identifier pgsql.Identifier) pgsql.CompoundIdentifier

StartID selects the relationship start-node identifier column.

func TextLiteral

func TextLiteral(literal string) pgsql.Literal

TextLiteral wraps literal as a PostgreSQL text literal for the renderer to quote.

Types

This section is empty.

Jump to

Keyboard shortcuts

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