Versions in this module Expand all Collapse all v0 v0.0.3 Nov 29, 2025 Changes in this version + const AliasResults + const BuilderCommandCount + const BuilderCommandLoad + const BuilderCommandLoadCursor + func ColumnNodeQueryName(n Node) string + func NodeHasAggregate(n Node) bool + func NodeIsArray(n Node) bool + func NodeIsDescending(n Node) bool + func NodeQueryKey(n Node) string + func NodeSetParent(n Node, parent Node) + func NodesMatch(node1, node2 Node) bool + func OperationNodeDistinct(n *OperationNode) bool + func OperationNodeFunction(n *OperationNode) string + func ParseTime(s string) (t time.Time) + func ValueNodeGetValue(n *ValueNode) interface + type AliasNode struct + func (n *AliasNode) Alias() string + func (n *AliasNode) DatabaseKey_() string + func (n *AliasNode) GobDecode(data []byte) (err error) + func (n *AliasNode) GobEncode() (data []byte, err error) + func (n *AliasNode) NodeType_() NodeType + func (n *AliasNode) TableName_() string + type AliasNodeI interface + Alias func() string + func NewAliasNode(alias string) AliasNodeI + type AliasValue struct + func NewAliasValue(a interface{}) AliasValue + func (a AliasValue) Bool() bool + func (a AliasValue) Bytes() []byte + func (a AliasValue) Float() float64 + func (a AliasValue) Int() int + func (a AliasValue) IsNil() bool + func (a AliasValue) IsNull() bool + func (a AliasValue) String() string + func (a AliasValue) Time() time.Time + type AutoPrimaryKey struct + func NewAutoPrimaryKey(v any) AutoPrimaryKey + func TempAutoPrimaryKey() AutoPrimaryKey + func ZeroAutoPrimaryKey() AutoPrimaryKey + func (a *AutoPrimaryKey) UnmarshalBinary(b []byte) error + func (a AutoPrimaryKey) Equal(v AutoPrimaryKey) bool + func (a AutoPrimaryKey) IsTemp() bool + func (a AutoPrimaryKey) IsZero() bool + func (a AutoPrimaryKey) MarshalBinary() ([]byte, error) + func (a AutoPrimaryKey) MarshalJSON() ([]byte, error) + func (a AutoPrimaryKey) String() string + func (a AutoPrimaryKey) Val() any + func (a AutoPrimaryKey) Value() (driver.Value, error) + type Builder struct + Calculations map[string]calc + Command BuilderCommand + Conditions []Node + GroupBys []Node + HavingNode Node + IsDistinct bool + IsSubquery bool + Limits LimitParams + OrderBys []Sorter + Root TableNodeI + Selects []Node + func NewBuilder(rootNode TableNodeI) *Builder + func (b *Builder) Calculation(base TableNodeI, alias string, operation OperationNodeI) + func (b *Builder) Distinct() + func (b *Builder) GroupBy(nodes ...Node) + func (b *Builder) HasAggregate() bool + func (b *Builder) Having(node Node) + func (b *Builder) Limit(maxRowCount int, offset int) + func (b *Builder) Nodes() (nodes []Node) + func (b *Builder) OrderBy(nodes ...Sorter) + func (b *Builder) Select(nodes ...Node) + func (b *Builder) Subquery() *SubqueryNode + func (b *Builder) Where(condition Node) + type BuilderCommand int + type BuilderI interface + Calculation func(base TableNodeI, alias string, n OperationNodeI) + Distinct func() + GroupBy func(nodes ...Node) + Having func(c Node) + Limit func(maxRowCount int, offset int) + OrderBy func(nodes ...Sorter) + Select func(nodes ...Node) + Where func(c Node) + func SubqueryBuilder(n *SubqueryNode) BuilderI + type ColumnNode struct + Field string + IsPrimaryKey bool + QueryName string + ReceiverType ReceiverType + SchemaSubType schema.ColumnSubType + SchemaType schema.ColumnType + func NewColumnNode(queryName string, field string, receiverType ReceiverType, ...) *ColumnNode + func (n *ColumnNode) Ascending() Sorter + func (n *ColumnNode) DatabaseKey_() string + func (n *ColumnNode) Descending() Sorter + func (n *ColumnNode) GobDecode(data []byte) (err error) + func (n *ColumnNode) GobEncode() (data []byte, err error) + func (n *ColumnNode) IsDescending() bool + func (n *ColumnNode) NodeType_() NodeType + func (n *ColumnNode) TableName_() string + type ColumnNodeI interface + type CursorI interface + Close func() error + Next func() (map[string]interface{}, error) + type LimitParams struct + MaxRowCount int + Offset int + func (l LimitParams) AreSet() bool + type ManyManyNode struct + AssnTableQueryName string + Field string + ParentForeignKey string + ParentPrimaryKey string + RefForeignKey string + RefPrimaryKey string + func (n *ManyManyNode) AssnTableName() string + func (n *ManyManyNode) GobDecode(data []byte) (err error) + func (n *ManyManyNode) GobEncode() (data []byte, err error) + func (n *ManyManyNode) ParentColumnNames() (string, string) + func (n *ManyManyNode) RefColumnNames() (string, string) + type ManyManyNodeI interface + AssnTableName func() string + ParentColumnNames func() (string, string) + RefColumnNames func() (string, string) + type Node interface + DatabaseKey_ func() string + NodeType_ func() NodeType + TableName_ func() string + func ContainedNodes(n Node) (nodes []Node) + func NewValueNode(i interface{}) Node + func NodeParent(n Node) Node + func NodePrimaryKeys(n Node) (nodes []Node) + func OperationNodeOperands(n *OperationNode) []Node + func RootNode(n Node) Node + func Value(i interface{}) Node + type NodeType int + const AliasNodeType + const ColumnNodeType + const ManyManyNodeType + const OperationNodeType + const ReferenceNodeType + const ReverseNodeType + const SubqueryNodeType + const TableNodeType + const UnknownNodeType + const ValueNodeType + func (nt NodeType) String() string + type OperationNode struct + func NewAggregateFunctionNode(functionName string, operands ...interface{}) *OperationNode + func NewCountNode(operands ...Node) *OperationNode + func NewFunctionNode(functionName string, operands ...interface{}) *OperationNode + func NewOperationNode(op Operator, operands ...interface{}) *OperationNode + func (n *OperationNode) DatabaseKey_() string + func (n *OperationNode) Distinct() *OperationNode + func (n *OperationNode) GobDecode(data []byte) (err error) + func (n *OperationNode) GobEncode() (data []byte, err error) + func (n *OperationNode) NodeType_() NodeType + func (n *OperationNode) TableName_() string + type OperationNodeI interface + type Operator string + const OpAdd + const OpAll + const OpAnd + const OpBitAnd + const OpBitInvert + const OpBitOr + const OpBitXor + const OpContains + const OpDateAddSeconds + const OpDivide + const OpEndsWith + const OpEqual + const OpFunc + const OpGreater + const OpGreaterEqual + const OpIn + const OpLess + const OpLessEqual + const OpLike + const OpModulo + const OpMultiply + const OpNegate + const OpNone + const OpNot + const OpNotEqual + const OpNotIn + const OpNotNull + const OpNull + const OpOr + const OpShiftLeft + const OpShiftRight + const OpStartsWith + const OpSubtract + const OpXor + func OperationNodeOperator(n *OperationNode) Operator + func (o Operator) String() string + type OrmObj interface + Get func(string) any + Initialize func() + Key func() string + Label func() string + MarshalBinary func() ([]byte, error) + MarshalJSON func() (data []byte, err error) + MarshalStringMap func() map[string]any + String func() string + UnmarshalBinary func(data []byte) (err error) + UnmarshalJSON func(data []byte) (err error) + UnmarshalStringMap func(m map[string]any) (err error) + type PrimaryKeyer interface + PrimaryKeys func() []*ColumnNode + type ReceiverType int + const ColTypeAutoPrimaryKey + const ColTypeBool + const ColTypeBytes + const ColTypeFloat32 + const ColTypeFloat64 + const ColTypeInteger + const ColTypeInteger64 + const ColTypeString + const ColTypeTime + const ColTypeULID + const ColTypeUUID + const ColTypeUnknown + const ColTypeUnsigned + const ColTypeUnsigned64 + func ReceiverTypeFromSchema(columnType schema.ColumnType, maxLength uint64) ReceiverType + func (g ReceiverType) DefaultValue() any + func (g ReceiverType) DefaultValueString() string + func (g ReceiverType) GoType() string + func (g ReceiverType) String() string + type ReferenceNode struct + Field string + ForeignKey string + PrimaryKey string + func (n *ReferenceNode) ColumnNames() (string, string) + func (n *ReferenceNode) GobDecode(data []byte) (err error) + func (n *ReferenceNode) GobEncode() (data []byte, err error) + type ReferenceNodeI interface + ColumnNames func() (string, string) + type ReverseNode struct + Field string + ForeignKey string + IsUnique bool + PrimaryKey string + func (n *ReverseNode) ColumnNames() (string, string) + func (n *ReverseNode) GobDecode(data []byte) (err error) + func (n *ReverseNode) GobEncode() (data []byte, err error) + func (n *ReverseNode) IsArray() bool + type ReverseNodeI interface + ColumnNames func() (string, string) + IsArray func() bool + type Sorter interface + Ascending func() Sorter + Descending func() Sorter + IsDescending func() bool + type SubqueryCommand int + const SubqueryCommandCount + const SubqueryCommandDefault + const SubqueryCommandGet + const SubqueryCommandLoad + func SubqueryCmd(n *SubqueryNode) SubqueryCommand + type SubqueryNode struct + func NewSubqueryNode(b BuilderI) *SubqueryNode + func (n *SubqueryNode) Count() *SubqueryNode + func (n *SubqueryNode) DatabaseKey_() string + func (n *SubqueryNode) Get() *SubqueryNode + func (n *SubqueryNode) GobDecode(data []byte) (err error) + func (n *SubqueryNode) GobEncode() (data []byte, err error) + func (n *SubqueryNode) Load() *SubqueryNode + func (n *SubqueryNode) NodeType_() NodeType + func (n *SubqueryNode) TableName_() string + type TableNodeI interface + ColumnNodes_ func() []Node + type ULID [16]byte + func NewULID() ULID + func RULID() ULID + func ULIDFromBytes(src []byte) (u ULID, err error) + func ULIDFromString(src string) (u ULID, err error) + func (u *ULID) Compare(b UUID) int + func (u *ULID) UnmarshalBinary(b []byte) error + func (u *ULID) UnmarshalText(b []byte) error + func (u ULID) Less(b UUID) bool + func (u ULID) MarshalBinary() ([]byte, error) + func (u ULID) MarshalText() ([]byte, error) + func (u ULID) String() string + type UUID [16]byte + func NewUUID() UUID + func NewV4UUID() UUID + func NewV7UUID() UUID + func RandomUUID() UUID + func UUIDFromBytes(src []byte) (u UUID, err error) + func UUIDFromString(src string) (u UUID, err error) + func (u *UUID) Compare(b UUID) int + func (u *UUID) UnmarshalBinary(b []byte) error + func (u *UUID) UnmarshalText(b []byte) error + func (u UUID) Less(b UUID) bool + func (u UUID) MarshalBinary() ([]byte, error) + func (u UUID) MarshalText() ([]byte, error) + func (u UUID) String() string + type ValueNode struct + func (n *ValueNode) DatabaseKey_() string + func (n *ValueNode) GobDecode(data []byte) (err error) + func (n *ValueNode) GobEncode() (data []byte, err error) + func (n *ValueNode) NodeType_() NodeType + func (n *ValueNode) TableName_() string