catalog

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	DefaultSchema string
	Schemas       []*Schema
}

Catalog represents the parsed database schema.

type Column

type Column struct {
	Name       string
	Type       string // raw SQL type name, e.g. "UUID", "VARCHAR(255)", "TIMESTAMP"
	NotNull    bool
	IsArray    bool
	ArrayDims  int
	Comment    string
	Length     *int
	IsUnsigned bool
}

Column represents a column in a database table.

type Enum

type Enum struct {
	Name   string
	Values []string
}

Enum represents a database enum type.

type Schema

type Schema struct {
	Name   string
	Tables []*Table
	Enums  []*Enum
}

Schema represents a database schema containing tables and types.

type Table

type Table struct {
	Name    string
	Schema  string
	Columns []*Column
	Comment string
}

Table represents a database table.

Jump to

Keyboard shortcuts

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