schema

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: MIT Imports: 7 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
}

type Database

type Database struct {
	Name   string
	Tables map[string]*Table
}

type SchemaRegistry

type SchemaRegistry struct {
	Databases map[string]*Database
	// contains filtered or unexported fields
}

func NewSchemaRegistry

func NewSchemaRegistry() *SchemaRegistry

func (*SchemaRegistry) GetTableInfo

func (sr *SchemaRegistry) GetTableInfo(database, table string) *Table

Update GetTableInfo method to be completely silent

func (*SchemaRegistry) LoadFromDDL

func (sr *SchemaRegistry) LoadFromDDL(ddlStatements []string) error

LoadFromDDL loads schema information from DDL statements (CREATE TABLE)

func (*SchemaRegistry) LoadFromFile

func (sr *SchemaRegistry) LoadFromFile(filename string) error

func (*SchemaRegistry) PrintSummary

func (sr *SchemaRegistry) PrintSummary()

Add PrintSummary method

func (*SchemaRegistry) PrintWarnings

func (sr *SchemaRegistry) PrintWarnings()

Update PrintWarnings to sort by reference count

type Table

type Table struct {
	Name    string
	Columns []Column
}

Jump to

Keyboard shortcuts

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