Versions in this module Expand all Collapse all v1 v1.0.5 Aug 22, 2026 v1.0.4 Aug 22, 2026 Changes in this version + const ArchiveFormatVersion + const ArchiveKeyBytes + const MaximumArchiveBytes + var ErrArchiveAuthentication = errors.New("migration archive authentication failed") + var ErrArchiveIntegrity = errors.New("migration archive integrity failed") + var ErrArchiveInvalid = errors.New("migration archive is invalid") + var ErrDatabaseNotQuiescent = errors.New("migration source database is not quiescent") + var ErrUnresolvedMappings = errors.New("migration has unresolved mappings") + func SealArchive(archive Archive, key []byte, random io.Reader) ([]byte, error) + type Archive struct + FormatVersion int + ManifestMAC string + RowCount int64 + SchemaVersion string + SourceDatabaseHash string + SourceEngine SourceEngine + TableCount int + Tables []Table + func NewArchive(engine SourceEngine, schemaVersion, sourceDatabaseHash string, tables []Table, ...) (Archive, error) + func OpenArchive(encoded, key []byte) (Archive, error) + func SnapshotPostgres(ctx context.Context, databaseURL, accountID string, key []byte) (Archive, error) + func SnapshotSQLite(ctx context.Context, path string, key []byte) (Archive, error) + type Column struct + Identity bool + Name string + NotNull bool + PrimaryKeyPosition int + SourceType string + type ImportPlan struct + Counts map[MappingClass]int64 + ManifestMAC string + Resolved bool + Rows []RowMapping + SchemaVersion string + SourceEngine SourceEngine + Tables []TableMapping + TotalRows int64 + func PlanPostgresImport(archive Archive) ImportPlan + func (report ImportPlan) RequireResolved() error + type MappingClass string + const MappingIncompatible + const MappingLegacyRetained + const MappingNeedsExplicitChoice + const MappingReady + type Row struct + Digest string + Values []Value + type RowMapping struct + Class MappingClass + Reason string + RecordDigest string + SourceTable string + TargetTable string + type SourceEngine string + const SourcePostgres + const SourceSQLite + type Table struct + Columns []Column + Count int64 + Dependencies []string + Digest string + IdentityMaxima map[string]string + Name string + Rows []Row + SchemaDigest string + TimestampBounds map[string]TimestampBounds + type TableMapping struct + Class MappingClass + Count int64 + Digest string + Reason string + SourceTable string + TargetTable string + type TableVerification struct + LogicalTable string + Matched bool + Reason string + SourceCount int64 + SourceDigest string + SourceTable string + TargetCount int64 + TargetDigest string + TargetTable string + type TimestampBounds struct + Maximum string + Minimum string + type Value struct + Kind ValueKind + Text string + type ValueKind string + const ValueBoolean + const ValueBytes + const ValueDecimal + const ValueInteger + const ValueJSON + const ValueNull + const ValueText + const ValueTimestamp + type VerificationReport struct + SourceManifestMAC string + Tables []TableVerification + TargetManifestMAC string + Verified bool + func VerifyMigration(source, target Archive, key []byte) VerificationReport