logsql

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCreateStatement

func ExecuteCreateStatement(stmt ast.Statement, sp *store.Provider) (string, error)

func ExecuteDropStatement

func ExecuteDropStatement(stmt ast.Statement, sp *store.Provider) (string, error)

func GetDescribeStatementLogsQL

func GetDescribeStatementLogsQL(stmt *ast.DescribeStatement, sp *store.Provider) (string, error)

func TranslateSelectStatementToLogsQL

func TranslateSelectStatementToLogsQL(stmt ast.Statement, sp *store.Provider) (string, error)

Types

type StatementInfo

type StatementInfo struct {
	Kind   StatementType
	LogsQL string
	Data   string
}

func GetStatementInfo

func GetStatementInfo(
	stmt ast.Statement,
	sp *store.Provider,
) (*StatementInfo, error)

type StatementType

type StatementType string
const (
	StatementTypeSelect     StatementType = "select"
	StatementTypeDescribe   StatementType = "describe"
	StatementTypeCreateView StatementType = "create_view"
	StatementTypeDropView   StatementType = "drop_view"
	StatementTypeShowTables StatementType = "show_tables"
	StatementTypeShowViews  StatementType = "show_views"
)

type TranslationError

type TranslationError struct {
	Code    int
	Message string
	Err     error
}

func (*TranslationError) Error

func (e *TranslationError) Error() string

func (*TranslationError) Unwrap

func (e *TranslationError) Unwrap() error

Jump to

Keyboard shortcuts

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