hsql

package
v0.0.0-...-8c2001a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hsql

type Hsql struct {
	// contains filtered or unexported fields
}

func New

func New(tns tns.TNS) *Hsql

func (*Hsql) Transform

func (h *Hsql) Transform(tenantId, group string, allowedTables []string, query string) (*Result, error)

type HsqlVisitor

type HsqlVisitor struct {
	// contains filtered or unexported fields
}

func (*HsqlVisitor) Visit

func (h *HsqlVisitor) Visit(node sql.Node) (sql.Visitor, error)

func (*HsqlVisitor) VisitEnd

func (h *HsqlVisitor) VisitEnd(node sql.Node) error

type Result

type Result struct {
	InverseAlias     map[string]string
	TransformedQuery string
}

Jump to

Keyboard shortcuts

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