Repository navigation
Expand file tree
/
Copy pathconstraint.go
More file actions
36 lines (33 loc) · 1.47 KB
/
Copy pathconstraint.go
File metadata and controls
36 lines (33 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package ast
type Constraint struct {
Tag NodeTag[Constraint] `json:"tag"`
Contype ConstrType `json:"contype"`
Conname *string `json:"conname,omitempty"`
Deferrable bool `json:"deferrable"`
Initdeferred bool `json:"initdeferred"`
Location int `json:"location"`
IsNoInherit bool `json:"is_no_inherit"`
RawExpr Node `json:"raw_expr,omitempty"`
CookedExpr *string `json:"cooked_expr,omitempty"`
GeneratedWhen byte `json:"generated_when"`
Keys *List `json:"keys,omitempty"`
Exclusions *List `json:"exclusions,omitempty"`
Options *List `json:"options,omitempty"`
Indexname *string `json:"indexname,omitempty"`
Indexspace *string `json:"indexspace,omitempty"`
AccessMethod *string `json:"access_method,omitempty"`
WhereClause Node `json:"where_clause,omitempty"`
Pktable *RangeVar `json:"pktable,omitempty"`
FkAttrs *List `json:"fk_attrs,omitempty"`
PkAttrs *List `json:"pk_attrs,omitempty"`
FkMatchtype byte `json:"fk_matchtype"`
FkUpdAction byte `json:"fk_upd_action"`
FkDelAction byte `json:"fk_del_action"`
OldConpfeqop *List `json:"old_conpfeqop,omitempty"`
OldPktableOid Oid `json:"old_pktable_oid"`
SkipValidation bool `json:"skip_validation"`
InitiallyValid bool `json:"initially_valid"`
}
func (n *Constraint) Pos() int {
return n.Location
}