Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MysqlConifg ¶
type MysqlConifg struct { Hostname string Port string User string Password string DbName string TablePrefix string MaxOpenConnections int MaxIdleConnections int ConnMaxLifetime int // unit second Debug bool }
MysqlConifg implements config
type RdsService ¶
RdsService
func NewRdsService ¶
func NewRdsService(config MysqlConifg) (*RdsService, error)
NewRdsService create new mysql dao service
func (*RdsService) RegistTable ¶
func (s *RdsService) RegistTable(t interface{})
RegistTable create table for given object
func (*RdsService) RegistTables ¶
func (s *RdsService) RegistTables(tables []interface{})
RegistTables create tables for given object
Click to show internal directories.
Click to hide internal directories.