sql

package
v0.35.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QueryCommentRegex     = regexp.MustCompile(`(?m)--.*$`)
	MultipleSpacesRegex   = regexp.MustCompile(`\s\s+`)
	SpacesAfterCommaRegex = regexp.MustCompile(`,\s+`)
	MaterializedRegex     = regexp.MustCompile(`(?m)^--[ \t]*@materialize[ \t]?:[ \t]*([a-zA-Z]*)\s+`)
)
View Source
var ErrNotSupported = errors.New("only model supported for sql")

Functions

This section is empty.

Types

type MaterializationInfo added in v0.20.0

type MaterializationInfo int64

MaterializationInfo Materialization values for models, specified using @materialize: tag in the comment

const (
	// MaterializeUnspecified When tag is not specified
	MaterializeUnspecified MaterializationInfo = iota
	// MaterializeTrue When tag is specified as true
	MaterializeTrue
	// MaterializeFalse When tag is specified as false
	MaterializeFalse
	// MaterializeInferred When it is not specified by the user, but we infer it and set this value
	MaterializeInferred
	// MaterializeInvalid When tag is specified but value is either empty or invalid
	MaterializeInvalid
)

func (MaterializationInfo) Materialize added in v0.20.0

func (m MaterializationInfo) Materialize() bool

Jump to

Keyboard shortcuts

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