Documentation
¶
Index ¶
- Constants
- Variables
- func AddH3Directive(field string, resolution int, transformFrom int, buffer float64, ...) *ast.Directive
- func CatalogDirective(catalog string, engine string) *ast.Directive
- func CatalogName(def *ast.Definition) string
- func CompiledPos(name string) *ast.Position
- func ExtraFieldDirective(name, baseType string) *ast.Directive
- func FieldCatalogName(def *ast.FieldDefinition) string
- func FieldGeometryInfoDirective(geomType string, srid int) *ast.Directive
- func FieldSourceDirective(name string) *ast.Directive
- func FieldSqlDirective(sql string) *ast.Directive
- func H3QueryDefinitionTemplate() *ast.Definition
- func Ident(s string) string
- func Init()
- func IsValidIdentifier(s string) bool
- func ModuleDirective(name string, pos *ast.Position) *ast.Directive
- func OriginalNameDirective(name string) *ast.Directive
- func QuerySideDirectives() []string
- func Sources() []*ast.Source
- func SqlFieldDirective(sql string) *ast.Directive
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 CatalogName ¶
func CatalogName(def *ast.Definition) string
func CompiledPos ¶ added in v0.1.16
func ExtraFieldDirective ¶
func FieldCatalogName ¶
func FieldCatalogName(def *ast.FieldDefinition) string
func FieldSourceDirective ¶ added in v0.1.15
func FieldSqlDirective ¶
func H3QueryDefinitionTemplate ¶ added in v0.1.16
func H3QueryDefinitionTemplate() *ast.Definition
func IsValidIdentifier ¶
func OriginalNameDirective ¶
func QuerySideDirectives ¶
func QuerySideDirectives() []string
func SqlFieldDirective ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.