models

package
v0.0.0-...-0d2fd8f Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func AddConnect

func AddConnect(ta PostConnect) (string, error)

func DelConnect

func DelConnect(ID string) (string, error)

func GetAllConn

func GetAllConn(n string) (string, error)

func GetConn

func GetConn(n string) (string, error)

func MotiConnect

func MotiConnect(ta PostConnect) (string, error)

func Open

func Open() (*sql.DB, 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

func GetConfig

func GetConfig() Config

type Connect

type Connect struct {
	ID      string
	Name    string
	Types   string
	ConnStr string
	Info    string
}

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{})

type PostConnect

type PostConnect struct {
	Action  string
	ID      string
	Name    string
	Types   string
	ConnStr string
	Info    string
}

Jump to

Keyboard shortcuts

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