mysql

package
v0.0.0-...-3a91a05 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Host   string
	Port   int
	User   string
	Auth   string
	DbName string
}

func New

func New(config *internal.Profile) *Generator

func (*Generator) Gen

func (g *Generator) Gen() error

type MySql

type MySql struct {
	DB     *sql.DB
	DBName string
}

https://github.com/xxjwxc/gormt

func (*MySql) DBNameString

func (this *MySql) DBNameString() string

func (*MySql) FindColumnsString

func (*MySql) FindColumnsString() string

func (*MySql) FindTableString

func (this *MySql) FindTableString() string

func (*MySql) GetDB

func (this *MySql) GetDB() *sql.DB

func (*MySql) Init

func (this *MySql) Init(userName, pwd, host string, port int, dbName string) error

连接pgsql数据库

Jump to

Keyboard shortcuts

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