zeninternals

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectSQLInjection

func DetectSQLInjection(query string, userInput string, dialect int) int

DetectSQLInjection performs SQL injection detection using the loaded library

func GetSQLDialectFromString

func GetSQLDialectFromString(dialect string) int

func Init

func Init() error

Init initializes the zen-internals library by verifying the WASM binary checksum, creating interpreter and compiler runtimes, and triggering async compilation. Instances can be created immediately using the interpreter runtime. This function is idempotent and safe to call multiple times.

Types

type DatabaseType

type DatabaseType int
const (
	Generic DatabaseType = iota
	Ansi
	BigQuery
	Clickhouse
	Databricks
	DuckDB
	Hive
	MSSQL
	MySQL
	PostgreSQL
	Redshift
	Snowflake
	SQLite
)

type Pool

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

func NewPool

func NewPool(newInstance func() *wasmInstance) *Pool

func (*Pool) Get

func (p *Pool) Get() (*wasmInstance, error)

func (*Pool) Put

func (p *Pool) Put(instance *wasmInstance)

Jump to

Keyboard shortcuts

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