atlasariga.io/atlas/sql/sqlcheck/condrop Index | Files

package condrop

import "ariga.io/atlas/sql/sqlcheck/condrop"

Index

Types

type Analyzer

type Analyzer struct {
	sqlcheck.Options
}

Analyzer checks for constraint-dropping changes.

func New

func New(r *schemahcl.Resource) (*Analyzer, error)

New creates a new constraint-dropping Analyzer with the given options.

func (*Analyzer) Analyze

func (a *Analyzer) Analyze(_ context.Context, p *sqlcheck.Pass) error

Analyze implements sqlcheck.Analyzer.

func (*Analyzer) Name

func (*Analyzer) Name() string

Name of the analyzer. Implements the sqlcheck.NamedAnalyzer interface.

Source Files

condrop.go

Version
v0.32.0 (latest)
Published
Mar 10, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
1 month ago

Tools for package owners.