dbschema

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Column

type Column struct {
	Name       string
	DataType   string
	UDTName    string
	Nullable   bool
	HasDefault bool
	EnumValues []string
	// The fields below are populated by PostgreSQL introspection and used to
	// reconstruct table DDL for migrations.
	DefaultExpr      string
	Identity         bool
	CharLength       int
	NumericPrecision int
	NumericScale     int
}

type Database

type Database struct {
	Schema string
	Tables []Table
}

type Table

type Table struct {
	Name       string
	Columns    []Column
	PrimaryKey []string
}

Jump to

Keyboard shortcuts

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