postgres

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, url string) (*pgx.Conn, error)

Connect establishes a connection to a PostgreSQL database.

func Inspect

func Inspect(ctx context.Context, conn *pgx.Conn) (*schema.Database, error)

Inspect introspects a live PostgreSQL database and returns its full schema representation.

func LoadSQL

func LoadSQL(ctx context.Context, conn *pgx.Conn, sqlPath string) (*schema.Database, error)

LoadSQL loads a SQL file into the given database connection and then introspects the result to obtain the normalized (canonical) schema.

Types

This section is empty.

Jump to

Keyboard shortcuts

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