MCPcopy Index your code
hub / github.com/coder/coder / astUUIDVar

Struct astUUIDVar

coderd/rbac/regosql/sqltypes/uuid.go:21–25  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

19// instead of text-based ones (COALESCE(column::text, ”) = 'val').
20// This allows PostgreSQL to use indexes on UUID columns.
21type astUUIDVar struct {
22 Source RegoSource
23 FieldPath []string
24 ColumnString string
25}
26
27func UUIDVarMatcher(sqlColumn string, regoPath []string) VariableMatcher {
28 return astUUIDVar{FieldPath: regoPath, ColumnString: sqlColumn}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected