schema

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntersectColumns

func IntersectColumns(columnInfoList ...[]ColumnInfo) []string

func IntersectIndexes

func IntersectIndexes(indexInfoList ...[]IndexInfo) []string

Types

type ColumnInfo

type ColumnInfo struct {
	Name      string
	Type      string
	Default   sql.NullString
	Collation sql.NullString
	Nullable  bool
}

type IndexInfo

type IndexInfo struct {
	Name    string
	Type    string
	Unique  bool
	Columns string
}

func (IndexInfo) ColumnNames

func (i IndexInfo) ColumnNames() []string

type TableInfo

type TableInfo struct {
	Name  string
	Key   string
	Valid bool
}

type TableSize

type TableSize struct {
	Name      string
	DataSize  int64
	IndexSize int64
}

func (TableSize) TotalSize

func (t TableSize) TotalSize() int64

Jump to

Keyboard shortcuts

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