| 38 | } |
| 39 | |
| 40 | func (q *Queries) GetRouteRuleByID(ctx context.Context, id string) (GetRouteRuleByIDRow, error) { |
| 41 | row := q.db.QueryRow(ctx, getRouteRuleByID, id) |
| 42 | var i GetRouteRuleByIDRow |
| 43 | err := row.Scan( |
| 44 | &i.ID, |
| 45 | &i.Name, |
| 46 | &i.RuleType, |
| 47 | &i.Patterns, |
| 48 | &i.OutboundID, |
| 49 | &i.Priority, |
| 50 | &i.RuleSetUrl, |
| 51 | &i.RuleSetFormat, |
| 52 | &i.NodeIds, |
| 53 | &i.InboundIds, |
| 54 | ) |
| 55 | return i, err |
| 56 | } |
| 57 | |
| 58 | const listRouteRules = `-- name: ListRouteRules :many |
| 59 | SELECT id, name, rule_type, patterns, outbound_id, priority, rule_set_url, rule_set_format, node_ids, inbound_ids |