manifest

package
v1.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmitManifest

func EmitManifest(ctx context.Context, records chan<- *connectors.Record, m *Manifest) error

EmitManifest serialises m as /manifest.json and sends it on records.

func ServerVersion

func ServerVersion(ctx context.Context, psqlBin string, conn pgconn.ConnConfig, connectDB string) (string, int, error)

ServerVersion queries the PostgreSQL server for its version string and numeric version. psqlBin is the path to the psql binary; connectDB is the database used for the connection.

Types

type Manifest

type Manifest struct {
	Version          int              `json:"version"`
	CreatedAt        time.Time        `json:"created_at"`
	Connector        string           `json:"connector"`
	Host             string           `json:"host"`
	Port             string           `json:"port"`
	ServerVersion    string           `json:"server_version"`
	ServerVersionNum int              `json:"server_version_num"`
	Database         string           `json:"database,omitempty"`
	DumpFormat       string           `json:"dump_format"`
	Options          *ManifestOptions `json:"options,omitempty"`
}

type ManifestOptions

type ManifestOptions struct {
	SchemaOnly bool `json:"schema_only"`
	DataOnly   bool `json:"data_only"`
	Compress   bool `json:"compress"`
}

Jump to

Keyboard shortcuts

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