astUUIDVar is a variable that represents a UUID column. Unlike astStringVar it emits native UUID comparisons (column = 'val'::uuid) instead of text-based ones (COALESCE(column::text, ”) = 'val'). This allows PostgreSQL to use indexes on UUID columns.
| 19 | // instead of text-based ones (COALESCE(column::text, ”) = 'val'). |
| 20 | // This allows PostgreSQL to use indexes on UUID columns. |
| 21 | type astUUIDVar struct { |
| 22 | Source RegoSource |
| 23 | FieldPath []string |
| 24 | ColumnString string |
| 25 | } |
| 26 | |
| 27 | func UUIDVarMatcher(sqlColumn string, regoPath []string) VariableMatcher { |
| 28 | return astUUIDVar{FieldPath: regoPath, ColumnString: sqlColumn} |
nothing calls this directly
no outgoing calls
no test coverage detected