Documentation ¶
Index ¶
- Variables
- func GetColumnNames(req tree.NodeFormatter) ([]string, error)
- func IsAllowed(tables []config.TargetTable, haveAccess func(Vec) bool, query string) error
- func ValidateAccess(vectors []Vec, haveAccess func(Vec) bool) error
- func ValidateSchema(vectors []Vec, tables []config.TargetTable) error
- func Walk(collect ICollect, statements ...tree.NodeFormatter) error
- type ICollect
- type TypeCollector
- type Vec
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetColumnNames ¶
func GetColumnNames(req tree.NodeFormatter) ([]string, error)
GetColumnNames will return all mentioned columns from query. Note: It will have unexpected behavior for queries that have a subquery.
func ValidateAccess ¶ added in v0.12.0
ValidateAccess check that all vectors is allowed to run.
func ValidateSchema ¶ added in v0.12.0
func ValidateSchema(vectors []Vec, tables []config.TargetTable) error
ValidateSchema will check that request contains only allowed columns.
Types ¶
type ICollect ¶ added in v0.5.0
type ICollect func(tree.NodeFormatter)
func CollectAll ¶ added in v0.5.0
type TypeCollector ¶ added in v0.5.0
type TypeCollector[T tree.NodeFormatter] struct { // contains filtered or unexported fields }
func CollectType ¶ added in v0.5.0
func CollectType[T tree.NodeFormatter]() *TypeCollector[T]
func (*TypeCollector[T]) Collect ¶ added in v0.5.0
func (c *TypeCollector[T]) Collect(node tree.NodeFormatter)
func (*TypeCollector[T]) Res ¶ added in v0.5.0
func (c *TypeCollector[T]) Res() []T
type Vec ¶ added in v0.5.0
func MakeVectors ¶ added in v0.12.0
MakeVectors create vectors from query.
Click to show internal directories.
Click to hide internal directories.