Documentation
¶
Overview ¶
Package snapshot inspects SQL Server schemas for migration planning, whole or narrowed to named objects. Query bounds used by the interactive explorer never apply to these snapshots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Schemas []string
// Task, when set, reports each catalog read as progress.
Task *task.Task
// Objects narrows the inspection to these tables, views, routines,
// triggers, sequences and table types, read with name filters; each must be
// in a schema of Schemas. An object that does not exist is not in the
// result. Empty reads every object of Schemas.
Objects []migrate.Name
// CollectRefusals reports what the native model cannot hold in
// Result.Refusals instead of failing the inspection: a whole-object refusal
// leaves the object out of Schema, a member refusal leaves it in.
CollectRefusals bool
}
type Refusal ¶ added in v1.3.8
Refusal names an object, or one member of it, that the snapshot cannot model faithfully. An empty Member refuses the whole object, which the snapshot then leaves out; a member refusal leaves the object in and says which part of it a plan must not touch.