Versions in this module Expand all Collapse all v0 v0.1.0 Apr 24, 2026 Changes in this version + const DefaultMode + func Envelope(v *Violation) output.Error + func MaybeInjectLimit(sql string, maxRows int) (string, bool, error) + func MaybeInjectLimitParsed(stmts statements.Statements, maxRows int) (string, bool) + type Mode string + const ModeFullAccess + const ModeReadOnly + const ModeSafeWrite + func ParseMode(s string) (Mode, error) + type Operation int + const OpExecute + const OpExplain + const OpSimulate + func (op Operation) String() string + type Violation struct + Kind ViolationKind + Mode Mode + Op Operation + Reason string + Tag string + func Check(mode Mode, op Operation, sql string) (*Violation, error) + func CheckParsed(mode Mode, op Operation, stmts statements.Statements) *Violation + type ViolationKind int + const KindBadOpInput + const KindClusterAdmin + const KindNestedExplain + const KindOther + const KindPrivilege + const KindSchema + const KindUnimplemented + const KindWrite