exampledb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package exampledb connects the examples to Postgres with a freshly migrated schema.

Index

Constants

View Source
const DefaultURL = "postgres://foreman:foreman@localhost:55432/foreman?sslmode=disable"

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, schema string) (*pgxpool.Pool, error)

Open connects to the database and recreates schema with the migrations applied.

func WaitState

func WaitState(ctx context.Context, c *foreman.Client, id int64, state foreman.State, timeout time.Duration) (
	*foreman.JobRow, error,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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