base

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WithDeletedDirectiveName = "with_deleted"
	StatsDirectiveName       = "stats"
	RawResultsDirectiveName  = "raw"
	UnnestDirectiveName      = "unnest"
)
View Source
const (
	FunctionTypeName         = "Function"
	FunctionMutationTypeName = "MutationFunction"
	QueryBaseName            = "Query"
	MutationBaseName         = "Mutation"

	ModuleDirectiveName = "module"
)
View Source
const (
	FieldGeometryInfoDirectiveName = "geometry_info"
	FieldSqlDirectiveName          = "sql"
	FieldExtraFieldDirectiveName   = "extra_field"
	FieldSourceDirectiveName       = "field_source"
)
View Source
const (
	CacheDirectiveName           = "cache"
	NoCacheDirectiveName         = "no_cache"
	InvalidateCacheDirectiveName = "invalidate_cache"
)
View Source
const (
	CatalogDirectiveName    = "catalog"
	DeprecatedDirectiveName = "deprecated"
	DependencyDirectiveName = "dependency" // dependencies of the catalogs
)
View Source
const (
	AddH3DirectiveName          = "add_h3"
	H3QueryFieldName            = "h3"
	H3QueryTypeName             = "_h3_query"
	H3DataQueryTypeName         = "_h3_data_query"
	H3DataFieldName             = "data"
	DistributionFieldName       = "distribution_by"
	DistributionTypeName        = "_distribution_by"
	BucketDistributionFieldName = "distribution_by_bucket"
	BucketDistributionTypeName  = "_distribution_by_bucket"
)
View Source
const (
	QueryTimeJoinsFieldName = "_join"
	QueryTimeJoinsTypeName  = "_join"

	QueryTimeSpatialFieldName = "_spatial"
	QueryTimeSpatialTypeName  = "_spatial"
)
View Source
const (
	OriginalNameDirectiveName = "original_name"
)
View Source
const (
	ViewArgsDirectiveName = "args"
)

Variables

View Source
var Schema *ast.Schema
View Source
var SystemDirective = &ast.Directive{Name: "system", Position: CompiledPos("")}

Functions

func AddH3Directive added in v0.1.16

func AddH3Directive(field string, resolution int, transformFrom int, buffer float64, divideVals bool, simplify bool, pos *ast.Position) *ast.Directive

func CatalogDirective

func CatalogDirective(catalog string, engine string) *ast.Directive

func CatalogName

func CatalogName(def *ast.Definition) string

func CompiledPos added in v0.1.16

func CompiledPos(name string) *ast.Position

func ExtraFieldDirective

func ExtraFieldDirective(name, baseType string) *ast.Directive

func FieldCatalogName

func FieldCatalogName(def *ast.FieldDefinition) string

func FieldGeometryInfoDirective

func FieldGeometryInfoDirective(geomType string, srid int) *ast.Directive

func FieldSourceDirective added in v0.1.15

func FieldSourceDirective(name string) *ast.Directive

func FieldSqlDirective

func FieldSqlDirective(sql string) *ast.Directive

func H3QueryDefinitionTemplate added in v0.1.16

func H3QueryDefinitionTemplate() *ast.Definition

func Ident

func Ident(s string) string

func Init

func Init()

func IsValidIdentifier

func IsValidIdentifier(s string) bool

func ModuleDirective

func ModuleDirective(name string, pos *ast.Position) *ast.Directive

func OriginalNameDirective

func OriginalNameDirective(name string) *ast.Directive

func QuerySideDirectives

func QuerySideDirectives() []string

func Sources

func Sources() []*ast.Source

func SqlFieldDirective

func SqlFieldDirective(sql string) *ast.Directive

Types

This section is empty.

Jump to

Keyboard shortcuts

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