- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for validatePsqlTableName (0.08 sec)
-
internal/event/target/postgresql_test.go
invalidTables := []string{"table name", "table \"name\"", "✅✅", "$table$"} for _, name := range validTables { if err := validatePsqlTableName(name); err != nil { t.Errorf("Should be valid: %s - %s", name, err) } } for _, name := range invalidTables { if err := validatePsqlTableName(name); err != errInvalidPsqlTablename { t.Errorf("Should be invalid: %s - %s", name, err) } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Apr 24 17:51:07 UTC 2024 - 1.7K bytes - Viewed (0) -
internal/event/target/postgresql.go
} // Validate PostgreSQLArgs fields func (p PostgreSQLArgs) Validate() error { if !p.Enable { return nil } if p.Table == "" { return fmt.Errorf("empty table name") } if err := validatePsqlTableName(p.Table); err != nil { return err } if p.Format != "" { f := strings.ToLower(p.Format) if f != event.NamespaceFormat && f != event.AccessFormat {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Sep 06 23:06:30 UTC 2024 - 13.3K bytes - Viewed (0)