vars

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 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 DatabaseConfig

type DatabaseConfig struct {
	Scheme  string `json:"scheme"`
	Connect struct {
		Type     string `json:"type"`
		Host     string `json:"host"`
		Port     string `json:"port"`
		User     string `json:"user"`
		Password string `json:"password"`
	} `json:"connect"`
	Tables []string `json:"tables"`
}

type Field

type Field struct {
	ColumnName    string `json:"column_name"`
	DataType      string `json:"data_type"`
	IsNullable    string `json:"is_nullable"`
	ColumnComment string `json:"column_comment"`
	ColumnKey     string `json:"column_key"`
	ColumnDefault string `json:"column_default"`
}

type Result

type Result struct {
	TableName     string      `json:"table_name"`
	ColumnName    string      `json:"column_name"`
	DataType      string      `json:"data_type"`
	IsNullable    string      `json:"is_nullable"`
	ColumnComment string      `json:"column_comment"`
	ColumnKey     string      `json:"column_key"`
	ColumnDefault interface{} `json:"column_default"`
}

type Structure

type Structure struct {
	TableName string  `json:"table_name"`
	Fields    []Field `json:"fields"`
	HasNull   bool    `json:"has_null"`
	HasTime   bool    `json:"has_time"`
}

Jump to

Keyboard shortcuts

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