Skip to content

validateTablePrefix

validateTablePrefix(prefix): void

Defined in: packages/core/src/schema/validate.ts:15

Validates a SQL table name prefix.

Interpolating a user-supplied string into a SQL identifier position (e.g. ${prefix}_runs) is a path to identifier injection — this guard is the first line of defense; adapters should still quote identifiers.

string

void

ValidationError when prefix contains characters outside the safe identifier set ^[a-z_][a-z0-9_]*$.