Documentation
¶
Index ¶
- func Add(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func And(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func Any(expr pgsql.Expression, castType pgsql.DataType) *pgsql.AnyExpression
- func Column(root, column pgsql.Identifier) pgsql.CompoundIdentifier
- func Concatenate(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func EdgeHasKind(edge pgsql.Identifier, kindID int16) *pgsql.BinaryExpression
- func EndID(identifier pgsql.Identifier) pgsql.CompoundIdentifier
- func EntityID(identifier pgsql.Identifier) pgsql.CompoundIdentifier
- func Equals(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func ExpressionArrayLiteral(values ...pgsql.Expression) pgsql.ArrayLiteral
- func GreaterThan(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func GreaterThanOrEqualTo(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func IntLiteral[T int | int16 | int32 | int64](literal T) pgsql.Literal
- func LessThan(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func LessThanOrEqualTo(lOperand, rOperand pgsql.Expression) *pgsql.BinaryExpression
- func Not(operand pgsql.Expression) *pgsql.UnaryExpression
- func Properties(identifier pgsql.Identifier) pgsql.CompoundIdentifier
- func PropertyLookup(owner pgsql.Identifier, propertyName string) *pgsql.BinaryExpression
- func StartID(identifier pgsql.Identifier) pgsql.CompoundIdentifier
- func TextLiteral(literal string) pgsql.Literal
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 ¶
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 ¶
TextLiteral wraps literal as a PostgreSQL text literal for the renderer to quote.
Types ¶
This section is empty.