diff options
Diffstat (limited to 'vendor/github.com/uptrace/bun/query_index_drop.go')
| -rw-r--r-- | vendor/github.com/uptrace/bun/query_index_drop.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/uptrace/bun/query_index_drop.go b/vendor/github.com/uptrace/bun/query_index_drop.go index 2a641a281..2f5132833 100644 --- a/vendor/github.com/uptrace/bun/query_index_drop.go +++ b/vendor/github.com/uptrace/bun/query_index_drop.go @@ -18,6 +18,8 @@ type DropIndexQuery struct { index schema.QueryWithArgs } +var _ Query = (*DropIndexQuery)(nil) + func NewDropIndexQuery(db *DB) *DropIndexQuery { q := &DropIndexQuery{ baseQuery: baseQuery{ @@ -50,6 +52,11 @@ func (q *DropIndexQuery) IfExists() *DropIndexQuery { return q } +func (q *DropIndexQuery) Cascade() *DropIndexQuery { + q.cascade = true + return q +} + func (q *DropIndexQuery) Restrict() *DropIndexQuery { q.restrict = true return q |
