postgres

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EmbeddedMigrations embed.FS

Functions

This section is empty.

Types

type Command added in v1.3.4

type Command struct {
	DBURL      string
	Subcommand string
	Adapter    tldb.Adapter
}

Command runs schema migrations against a Postgres database using the migrations embedded in this package. Lives next to the embedded migrations so consumers that don't need to run dbmigrate don't transitively pull them in by importing transitland-lib/cmds.

func (*Command) AddFlags added in v1.3.4

func (cmd *Command) AddFlags(fl *pflag.FlagSet)

func (*Command) HelpArgs added in v1.3.4

func (cmd *Command) HelpArgs() string

func (*Command) HelpDesc added in v1.3.4

func (cmd *Command) HelpDesc() (string, string)

func (*Command) Parse added in v1.3.4

func (cmd *Command) Parse(args []string) error

func (*Command) Run added in v1.3.4

func (cmd *Command) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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