postgrescheck

package
v0.19.2-patched Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentIndex

type ConcurrentIndex struct {
	ConcurrentOptions
}

ConcurrentIndex checks for concurrent index creation, dropping, and its transactional safety.

func NewConcurrentIndex

func NewConcurrentIndex(r *schemahcl.Resource) (*ConcurrentIndex, error)

NewConcurrentIndex creates a new concurrent-index Analyzer with the given options.

func (*ConcurrentIndex) Analyze

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

Analyze implements sqlcheck.Analyzer.

func (*ConcurrentIndex) Name

func (*ConcurrentIndex) Name() string

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

type ConcurrentOptions

type ConcurrentOptions struct {
	sqlcheck.Options
	CheckCreate *bool `spec:"check_create"`
	CheckDrop   *bool `spec:"check_drop"`
	CheckTxMode *bool `spec:"check_txmode"`
}

ConcurrentOptions for concurrent index creation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL