Documentation ¶
Index ¶
- type Config
- func (s *Config) Dsn(t string) *Config
- func (s *Config) EnableDebug(t bool) *Config
- func (s *Config) EnableJsonTag(t bool) *Config
- func (s *Config) PackageName(t string) *Config
- func (s *Config) RealTableNameMethod(t string) *Config
- func (s *Config) SavePath(t string) *Config
- func (s *Config) Table(t string) *Config
- func (s *Config) TableFilterHook(t func(string) bool) *Config
- func (s *Config) TagKey(t string) *Config
- type Table2Struct
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 (*Config) EnableDebug ¶
func (*Config) EnableJsonTag ¶
func (*Config) PackageName ¶
func (*Config) RealTableNameMethod ¶
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
Click to show internal directories.
Click to hide internal directories.