model_convertor

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func DefaultConfig

func DefaultConfig(username, password, host string, port int, database string) *Config

func (*Config) Dsn

func (s *Config) Dsn(t string) *Config

func (*Config) EnableDebug

func (s *Config) EnableDebug(t bool) *Config

func (*Config) EnableJsonTag

func (s *Config) EnableJsonTag(t bool) *Config

func (*Config) PackageName

func (s *Config) PackageName(t string) *Config

func (*Config) RealTableNameMethod

func (s *Config) RealTableNameMethod(t string) *Config

func (*Config) SavePath

func (s *Config) SavePath(t string) *Config

func (*Config) Table

func (s *Config) Table(t string) *Config

func (*Config) TableFilterHook

func (s *Config) TableFilterHook(t func(string) bool) *Config

func (*Config) TagKey

func (s *Config) TagKey(t string) *Config

type Table2Struct

type Table2Struct struct {
	// contains filtered or unexported fields
}

func NewTable2Struct

func NewTable2Struct(config *Config) *Table2Struct

func (*Table2Struct) Run

func (t *Table2Struct) Run() error

Jump to

Keyboard shortcuts

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