datasource

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsIdentifier

func ContainsIdentifier(query string, identifier string) bool

func IsSingleReadOnlyStatement

func IsSingleReadOnlyStatement(query string) bool

func QueryWithRowLimit

func QueryWithRowLimit(query string, rowLimit int64) string

func ReferencedTables

func ReferencedTables(query string, explicitTableNames []string, tables []TableConfig) []string

func ValidateReadOnlyQuery

func ValidateReadOnlyQuery(query string, explicitTableNames []string, tables []TableConfig) error

Types

type TableConfig

type TableConfig struct {
	Name         string
	TenantColumn string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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