Documentation ¶
Index ¶
- Variables
- type Mscon
- func (this *Mscon) BeginStart() bool
- func (this *Mscon) Build_page_sql() (string, []interface{})
- func (this *Mscon) Build_where() (string, []interface{})
- func (this *Mscon) Check_data_fields(fieldname string) bool
- func (this *Mscon) Commit()
- func (this *Mscon) Count() int64
- func (this *Mscon) Dbinit()
- func (this *Mscon) Delete() (sql.Result, error)
- func (this *Mscon) Excute(sqltext string, param []interface{}) (sql.Result, error)
- func (this *Mscon) Find() map[string]string
- func (this *Mscon) GetLastSql() string
- func (this *Mscon) GetRow(sqltext string, param []interface{}) map[string]string
- func (this *Mscon) Get_Fileds_sql(tbname string) string
- func (this *Mscon) Get_Tbname_Sql() (string, []interface{})
- func (this *Mscon) Get_new_add() map[string]string
- func (this *Mscon) Get_read_dbcon() *sql.DB
- func (this *Mscon) Get_where_data(postdata map[string]interface{}) map[string]interface{}
- func (this *Mscon) Insert(postdata map[string]interface{}) (sql.Result, error)
- func (this *Mscon) Limit(limitstr string) *Mscon
- func (this *Mscon) MapContains(src map[string]interface{}, key string) bool
- func (this *Mscon) MapContains_str(src map[string]string, key string) bool
- func (this *Mscon) Order(orderstr string) *Mscon
- func (this *Mscon) PageSet(pagesize, pageno int) *Mscon
- func (this *Mscon) Query(sqltext string, param []interface{}) []map[string]string
- func (this *Mscon) QueryOne() map[string]interface{}
- func (this *Mscon) QueryPage() []map[string]interface{}
- func (this *Mscon) Rollback()
- func (this *Mscon) Select() []map[string]string
- func (this *Mscon) SetDec(fdname string, quantity int) (sql.Result, error)
- func (this *Mscon) SetFields(src string) *Mscon
- func (this *Mscon) SetInc(fdname string, quantity int) (sql.Result, error)
- func (this *Mscon) SetWhere(where string, param ...interface{}) *Mscon
- func (this *Mscon) Sum(fd string) float64
- func (this *Mscon) Tbname(name string) *Mscon
- func (this *Mscon) Update(postdata map[string]interface{}) (sql.Result, error)
- func (this *Mscon) Update_redis(tbname string)
- func (this *Mscon) Where(where interface{}) *Mscon
Constants ¶
This section is empty.
Variables ¶
View Source
var G_dbtables map[string]interface{}
View Source
var G_fd_dict map[string]interface{}
View Source
var G_fd_list map[string]interface{}
View Source
var G_tb_dict map[string]interface{}
Functions ¶
This section is empty.
Types ¶
type Mscon ¶
type Mscon struct { Db_host string Db_port string Db_name string Db_password string Db_perfix string Masterdb *sql.DB Slavedb []*sql.DB SqlTx *sql.Tx Slock sync.Mutex Where_param []interface{} Tablename string Sql_where string Sql_order string Sql_fields string Sql_limit string PageSize, PageNo int Query_data []map[string]interface{} Join_arr map[string]string LastSqltext string }
func NewMsSql_Server_Con ¶
func (*Mscon) BeginStart ¶
func (*Mscon) Build_page_sql ¶
func (*Mscon) Build_where ¶
func (*Mscon) Check_data_fields ¶
func (*Mscon) GetLastSql ¶
func (*Mscon) Get_Fileds_sql ¶
func (*Mscon) Get_Tbname_Sql ¶
func (*Mscon) Get_new_add ¶
func (*Mscon) Get_read_dbcon ¶
func (*Mscon) Get_where_data ¶
func (*Mscon) MapContains ¶
func (*Mscon) MapContains_str ¶
func (*Mscon) Update_redis ¶
Click to show internal directories.
Click to hide internal directories.