sqlident

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sqlident validates SQL identifiers (table names) that refid's storage backends interpolate directly into raw SQL strings. Table names cannot be passed as bind parameters, so every backend must whitelist a caller-supplied name before formatting it into a query; sharing one validator (instead of one per backend) keeps both backends enforcing the identical rule and in lockstep if it's ever hardened.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(name string) error

Validate reports whether name is safe to interpolate directly into SQL as an unquoted identifier (e.g. a table name).

Types

This section is empty.

Jump to

Keyboard shortcuts

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