schema

package
v0.0.0-...-54a784d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg Config) error

Types

type Config

type Config struct {
	VTParams mysql.ConnParams
}

type Info

type Info struct {
	FileType string      `json:"fileType"`
	Tables   []TableInfo `json:"tables"`
}

func Get

func Get(cfg Config) (*Info, error)

func Load

func Load(fileName string) (*Info, error)

type TableInfo

type TableInfo struct {
	Name string `json:"name"`
	Rows int    `json:"rows"`
}

Jump to

Keyboard shortcuts

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