primitivefield

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package primitivefield contains the private, shared primitive-list query rules. Storage compilation and operation lifecycle remain owned by their subsystems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsList

func IsList(field schema.Field) bool

func Membership

func Membership(value store.Value, candidates query.Value) bool

Membership is strict element equality. It never sorts or deduplicates values.

func UnsupportedPath

func UnsupportedPath(fields []schema.Field, path query.Path, cause error) error

UnsupportedPath must only wrap a path-resolution failure for caller input. Other field kinds retain their existing adapter error contract.

func ValidateComparison

func ValidateComparison(field schema.Field, comparison query.Comparison) error

func ValidateEvolution

func ValidateEvolution(before, after schema.Snapshot) error

ValidateEvolution prevents storage casts from masquerading as value-shape migrations. Applications must use an explicit, supported migration procedure.

func ValidateIndexes

func ValidateIndexes(collection schema.Collection) error

func ValidateManifestIndexes

func ValidateManifestIndexes(manifest schema.Manifest) error

func ValidateNode

func ValidateNode(fields []schema.Field, node *query.Node) error

func ValidateRequest

func ValidateRequest(request store.Request) error

Types

type UnsupportedQueryError

type UnsupportedQueryError struct {
	Path  query.Path
	Cause error
}

UnsupportedQueryError identifies a caller's primitive-list path rejected by an adapter's existing query boundary. It is private to framework packages; schema/access configuration failures are not marked as caller input errors.

func (*UnsupportedQueryError) Error

func (err *UnsupportedQueryError) Error() string

func (*UnsupportedQueryError) Unwrap

func (err *UnsupportedQueryError) Unwrap() error

Jump to

Keyboard shortcuts

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