scanners

package
v1.2210.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQL

type SQL struct {
	Fingerprint string
	RawText     string
	Counter     int
	Schema      string
}

type Scanner

type Scanner interface {
	// Run start scanner. It parse SQLs and sends
	// it to the channel until ctx is canceled. Caller must check error.
	Run(ctx context.Context) error

	// SQLs returns channel that should be read until it is closed.
	SQLs() <-chan SQL

	// Upload upload sqls to underlying client.
	Upload(ctx context.Context, sqls []SQL) error
}

Scanner is a interface for all Scanners.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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