1234567891011121314151617181920212223242526272829303132333435363738 |
- package pg
- import (
- "github.com/kyleconroy/sqlc/internal/sql/ast"
- )
- type Constraint struct {
- Contype ConstrType
- Conname *string
- Deferrable bool
- Initdeferred bool
- Location int
- IsNoInherit bool
- RawExpr ast.Node
- CookedExpr *string
- GeneratedWhen byte
- Keys *ast.List
- Exclusions *ast.List
- Options *ast.List
- Indexname *string
- Indexspace *string
- AccessMethod *string
- WhereClause ast.Node
- Pktable *RangeVar
- FkAttrs *ast.List
- PkAttrs *ast.List
- FkMatchtype byte
- FkUpdAction byte
- FkDelAction byte
- OldConpfeqop *ast.List
- OldPktableOid Oid
- SkipValidation bool
- InitiallyValid bool
- }
- func (n *Constraint) Pos() int {
- return n.Location
- }
|