dbtool

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package dbtool adapts external schema management tools to TypeRB's stable database commands. It does not own schema semantics or ORM behavior.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation string
const (
	Plan   Operation = "plan"
	Apply  Operation = "apply"
	Export Operation = "export"
)

type Sqldef

type Sqldef struct {
	Root   string
	Config *project.DatabaseConfig
	Stdout io.Writer
	Stderr io.Writer
}

func (Sqldef) Run

func (s Sqldef) Run(operation Operation, desired []byte, allowDestructive bool) ([]byte, error)

Jump to

Keyboard shortcuts

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