util

package
v0.0.0-...-4b5621c Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

Functions

func CreeteInitfile

func CreeteInitfile(filename string)

func InitDB

func InitDB(daotype string)

func Showtables

func Showtables() (r []string)

func ToUpperFirstLetter

func ToUpperFirstLetter(s string) string

Types

type ConfBean

type ConfBean struct {
	DbType      string        `json:"dbtype"`
	DbHost      string        `json:"dbhost"`
	DbPort      int           `json:"dbport"`
	DbName      string        `json:"dbname"`
	DbUser      string        `json:"dbuser"`
	DbPwd       string        `json:"dbpwd"`
	Package     string        `json:"package"`
	Table       []string      `json:"table"`
	TableExcept []string      `json:"table_except"`
	TableAlias  []Table_alias `json:"table_alias"`
}
var Config *ConfBean

func (*ConfBean) GetAlias

func (c *ConfBean) GetAlias(tablename string) string

func (*ConfBean) IsExcept

func (c *ConfBean) IsExcept(tablename string) bool

type Table_alias

type Table_alias struct {
	Table string `json:"table"`
	Alias string `json:"alias"`
}

Jump to

Keyboard shortcuts

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