(rego ast.Ref)
| 31 | func (astUUIDVar) UseAs() Node { return astUUIDVar{} } |
| 32 | |
| 33 | func (u astUUIDVar) ConvertVariable(rego ast.Ref) (Node, bool) { |
| 34 | left, err := RegoVarPath(u.FieldPath, rego) |
| 35 | if err == nil && len(left) == 0 { |
| 36 | return astUUIDVar{ |
| 37 | Source: RegoSource(rego.String()), |
| 38 | FieldPath: u.FieldPath, |
| 39 | ColumnString: u.ColumnString, |
| 40 | }, true |
| 41 | } |
| 42 | |
| 43 | return nil, false |
| 44 | } |
| 45 | |
| 46 | func (u astUUIDVar) SQLString(_ *SQLGenerator) string { |
| 47 | return u.ColumnString |
nothing calls this directly
no test coverage detected