mysql

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx *Context, names []string, r io.Reader, w io.Writer)

func LearnChan

func LearnChan(ctx *Context, models map[string]nlp.Model, policy *scrubbing.Policy, in <-chan string)

TODO docs

func ScrubChan

func ScrubChan(ctx *Context, sc *scrubbing.Scrubber, in <-chan string, out chan<- string)

ScrubChan sanitizes a sequence of lines, each of which may contain multiple SQL statements. It sends one output string for every input string received, even for multi-line or multi-statement inputs. This allows the caller to handle parallelism as desired.

Types

type Context

type Context struct {
	context.Context
	TableColumns map[string][]string
}

Context accumulates information about the structure of input data which can later be used to scrub the same data.

func NewContext

func NewContext() *Context

func (*Context) Scan

func (sc *Context) Scan(sql string) error

Jump to

Keyboard shortcuts

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