Documentation
¶
Overview ¶
Package importer coordinates portable imports without exposing source credentials. Purpose: shared source contract. Inputs: env-name flags and a started target. Outputs: a verified report. Constraints: sources own extraction only.
Index ¶
- Constants
- func Register(s Source)
- func RegistryErrors() []error
- func SystemTables(schema, name string, storage bool) bool
- type Detection
- type Extracted
- type FlagSpec
- type HasuraReport
- type Input
- type Policy
- type Report
- type ResetUser
- type RunOptions
- type Source
- type StorageReport
- type TableReport
- type UsersReport
Constants ¶
View Source
const PartitionedPrefix = "source table is partitioned (not supported yet): "
PartitionedPrefix starts the E520 message that names an unsupported partitioned source table.
Variables ¶
This section is empty.
Functions ¶
func RegistryErrors ¶
func RegistryErrors() []error
func SystemTables ¶
SystemTables excludes nSelf-owned data, with storage excluded only when enabled.
Types ¶
type Detection ¶
type Detection struct {
Kind string `json:"kind"`
Version string `json:"version"`
Notes []string `json:"notes"`
Schemas []string `json:"schemas"`
// SourceUsers counts the source auth users seen at detection; --plan uses it to run the
// same auth.users preflight as the real run.
SourceUsers int `json:"source_users,omitempty"`
}
type HasuraReport ¶
type Report ¶
type Report struct {
Source string `json:"source"`
RunID string `json:"run_id"`
Result string `json:"result"`
Tables []TableReport `json:"tables"`
Users UsersReport `json:"users"`
Storage StorageReport `json:"storage"`
Hasura HasuraReport `json:"hasura"`
UntranslatedPolicies []Policy `json:"untranslated_policies"`
Exemptions []portable.Exemption `json:"exemptions"`
Mismatches []verify.Mismatch `json:"mismatches"`
Steps []string `json:"steps,omitempty"`
// Wrote is true once the target may have changed; LastStep is the last finished load step.
Wrote bool `json:"wrote"`
LastStep string `json:"last_step,omitempty"`
Detection *Detection `json:"detection,omitempty"`
}
type RunOptions ¶
type Source ¶
type StorageReport ¶
type TableReport ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package load applies verified bundles to fresh, started targets.
|
Package load applies verified bundles to fresh, started targets. |
|
Package postgres registers the base snapshot importer.
|
Package postgres registers the base snapshot importer. |
|
Package scratch turns generated DDL and COPY files into a portable Postgres bundle.
|
Package scratch turns generated DDL and COPY files into a portable Postgres bundle. |
|
Package testkit provides isolated source fixtures and target projects.
|
Package testkit provides isolated source fixtures and target projects. |
|
Package verify defines the importer's zero-mismatch rule.
|
Package verify defines the importer's zero-mismatch rule. |
Click to show internal directories.
Click to hide internal directories.