neon

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package neon reports on the database behind an app.

It plans no writes. What it checks is that the branch the config names still exists, and that the service's DATABASE_URL is the one the operator thinks it is — a service quietly pointing at a deleted branch, or at last month's project, is the failure this catches.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Plan

func Plan(ctx context.Context, api API, n config.Neon, liveDatabaseURL string, getenv func(string) string) (plan.Plan, error)

Plan checks the declared branch exists. liveDatabaseURL is the service's current value; it is compared and discarded, never rendered.

Types

type API

type API interface {
	Branches(ctx context.Context, projectID string) ([]neonapi.Branch, error)
}

API is the read half, narrowed for tests.

Jump to

Keyboard shortcuts

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