Versions in this module Expand all Collapse all v0 v0.11.0 Sep 9, 2026 Changes in this version + func ContainsKeyword(sql string, keyword string) bool + func ExtractAllBalancedParentheses(text string) []string + func ExtractBalancedParentheses(text string) string + func ExtractFunctionName(sql string) string + func ExtractIndexName(sql string) string + func ExtractPolicyTargetTable(sql string) string + func ExtractSchemaName(sql string) string + func ExtractTableName(sql string) string + func HasBalancedParentheses(text string) bool + func HasClause(sql string, clause string) bool + func HasVolatilityMarker(sql string) bool + func IsDDLOperation(op types.Operation) bool + func IsDDLStatement(sql string) bool + func IsDMLOperation(op types.Operation) bool + func IsDMLStatement(sql string) bool + func IsSecurityOperation(op types.Operation) bool + func IsValidCategory(c types.Category) bool + func IsValidObjectType(t types.ObjectType) bool + func IsValidOperation(op types.Operation) bool + func NormalizeObjectName(name string) string + func NormalizeSQLWhitespace(sql string) string + func SetDefaultLogger(logger *Logger) + func StripOutermostParentheses(text string) string + func TrimSQLComments(sql string) string + func ValidCategories() []types.Category + func ValidObjectTypes() []types.ObjectType + func ValidOperations() []types.Operation + func ValidateCategory(c types.Category) error + func ValidateObjectType(t types.ObjectType) error + func ValidateOperation(op types.Operation) error + type LogLevel int + const LogLevelDebug + const LogLevelError + const LogLevelFatal + const LogLevelInfo + const LogLevelWarn + func (l LogLevel) String() string + type Logger struct + func GetDefaultLogger() *Logger + func NewLogger(minLevel LogLevel, output io.Writer) *Logger + func (l *Logger) Debug(format string, args ...any) + func (l *Logger) Error(format string, args ...any) + func (l *Logger) Fatal(format string, args ...any) + func (l *Logger) Info(format string, args ...any) + func (l *Logger) StandardLogger(level LogLevel) *log.Logger + func (l *Logger) Warn(format string, args ...any) + func (l *Logger) WithPrefix(prefix string) *Logger + type PublicationAddTableTarget struct + Publication string + Schema string + Table string + func ParsePublicationAddTable(sql string) (PublicationAddTableTarget, bool) + type WarningManager struct + func NewWarningManager() *WarningManager + func (wm *WarningManager) AddRawWarning(message string) + func (wm *WarningManager) AddRawWarnings(messages []string) + func (wm *WarningManager) AddWarning(warning *errors.StructuredError) + func (wm *WarningManager) Count() int + func (wm *WarningManager) CountBySeverity() map[errors.Severity]int + func (wm *WarningManager) FormatWarnings() string + func (wm *WarningManager) GetWarnings() []*errors.StructuredError + func (wm *WarningManager) GetWarningsByCategory() map[errors.Category][]*errors.StructuredError + func (wm *WarningManager) GetWarningsBySeverity() map[errors.Severity][]*errors.StructuredError + func (wm *WarningManager) HasCriticalWarnings() bool