Documentation ¶
Index ¶
- Variables
- func AddConnect(ta PostConnect) (string, error)
- func DelConnect(ID string) (string, error)
- func GetAllConn(n string) (string, error)
- func GetConn(n string) (string, error)
- func MotiConnect(ta PostConnect) (string, error)
- func Open() (*sql.DB, error)
- type Config
- type Connect
- type Exec
- type JsonStruct
- type PostConnect
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *go_logger.Logger
Functions ¶
func AddConnect ¶
func AddConnect(ta PostConnect) (string, error)
func DelConnect ¶
func GetAllConn ¶
func MotiConnect ¶
func MotiConnect(ta PostConnect) (string, error)
Types ¶
type Config ¶
type Config struct { IP string Port string DB string DBStr string Dev string Cooexpires string Secure string Ssl string Timeouts string Template string }
var Conf Config
type Exec ¶
type Exec struct { ConnID string //数据库连接ID Databse string //数据库名 Tabl string //表名 Execstr string //数据库执行语句 RunType string //执行命令控制,如点击数据库,点击表 Limit string //执行的limit }
CREATE TABLE Connect(
ID serial not null, Name varchar(255), Types varchar(255), ConnStr varchar(255), Info varchar(255), PRIMARY KEY( ID , Name) );
type JsonStruct ¶
type JsonStruct struct { }
func NewJsonStruct ¶
func NewJsonStruct() *JsonStruct
func (*JsonStruct) Load ¶
func (jst *JsonStruct) Load(filename string, v interface{})
Click to show internal directories.
Click to hide internal directories.