Help us shape the future of Go! Take the 2026 Go Developer Survey

base

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WithDeletedDirective = "with_deleted"
	StatsDirective       = "stats"
	RawResultsDirective  = "raw"
)
View Source
const (
	FunctionTypeName         = "Function"
	FunctionMutationTypeName = "MutationFunction"

	ModuleDirectiveName = "module"
)
View Source
const (
	FieldGeometryInfoDirectiveName = "geometry_info"
	FieldSqlDirectiveName          = "sql"
	FieldExtraFieldDirectiveName   = "extra_field"
)
View Source
const (
	CacheDirectiveName           = "cache"
	NoCacheDirectiveName         = "no_cache"
	InvalidateCacheDirectiveName = "invalidate_cache"
)
View Source
const (
	CatalogDirectiveName    = "catalog"
	DeprecatedDirectiveName = "deprecated"
)
View Source
const (
	OriginalNameDirectiveName = "original_name"
)
View Source
const (
	ViewArgsDirectiveName = "args"
)

Variables

View Source
var Schema *ast.Schema

Functions

func CatalogDirective

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

func CatalogName

func CatalogName(def *ast.Definition) string

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 FieldSqlDirective

func FieldSqlDirective(sql string) *ast.Directive

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