Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package postgres extracts schema metadata from a PostgreSQL service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(src config.Source) (source.Source, error)

New builds a postgres Source from the parsed workflow source config.

Types

type Source

type Source struct {
	// contains filtered or unexported fields
}

Source extracts metadata from a PostgreSQL instance.

func (*Source) Close

func (s *Source) Close() error

Close is a no-op: connections are opened and closed per database in Extract.

func (*Source) Extract

func (s *Source) Extract(ctx context.Context) (*model.Service, error)

Extract pulls databases, schemas, tables and columns.

func (*Source) Prepare

func (s *Source) Prepare(ctx context.Context) error

Prepare validates connectivity by pinging the configured database.

Jump to

Keyboard shortcuts

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