Documentation ¶
Index ¶
- Variables
- type Oraclecon
- func (this *Oraclecon) BeginStart() bool
- func (this *Oraclecon) Build_where() (string, []interface{})
- func (this *Oraclecon) Check_PK(fdname string) bool
- func (this *Oraclecon) Check_data_fields(fieldname string) bool
- func (this *Oraclecon) Commit()
- func (this *Oraclecon) Count() int64
- func (this *Oraclecon) Dbinit()
- func (this *Oraclecon) Delete() (sql.Result, error)
- func (this *Oraclecon) Excute(sqltext string, param []interface{}) (sql.Result, error)
- func (this *Oraclecon) Fileds(name string) *Oraclecon
- func (this *Oraclecon) Find() map[string]string
- func (this *Oraclecon) GetLastSql() string
- func (this *Oraclecon) Get_fields_sql(fd_name, val_name string) (result string)
- func (this *Oraclecon) Get_fun_fields(fd_name, val_name string) (result string, flag bool)
- func (this *Oraclecon) Get_new_add() map[string]string
- func (this *Oraclecon) Get_where_data(postdata map[string]interface{}) map[string]interface{}
- func (this *Oraclecon) Init_Redis_Struct()
- func (this *Oraclecon) Insert(postdata map[string]interface{}) (sql.Result, error)
- func (this *Oraclecon) Merge_And_where(where_str, new_str string) string
- func (this *Oraclecon) Merge_OR_where(where_str, new_str string) string
- func (this *Oraclecon) Order(orderstr string) *Oraclecon
- func (this *Oraclecon) PageLimit(startct, endct int) *Oraclecon
- func (this *Oraclecon) Query(sqltext string, param []interface{}) []map[string]string
- func (this *Oraclecon) Query_One(sqltext string, param []interface{}) map[string]string
- func (this *Oraclecon) Rollback()
- func (this *Oraclecon) Select() []map[string]string
- func (this *Oraclecon) SetDec(fdname string, quantity int) (sql.Result, error)
- func (this *Oraclecon) SetInc(fdname string, quantity int) (sql.Result, error)
- func (this *Oraclecon) SetOpen(flag bool) *Oraclecon
- func (this *Oraclecon) SetPK(str_val string) *Oraclecon
- func (this *Oraclecon) SetWhere(where string, param ...interface{}) *Oraclecon
- func (this *Oraclecon) Sum(fd string) float64
- func (this *Oraclecon) Tbname(name string) *Oraclecon
- func (this *Oraclecon) Type2str(val interface{}) string
- func (this *Oraclecon) Update(postdata map[string]interface{}) (sql.Result, error)
- func (this *Oraclecon) Update_redis(tbname string)
- func (this *Oraclecon) Where(where interface{}) *Oraclecon
Constants ¶
This section is empty.
Variables ¶
View Source
var G_dbtables map[string]interface{}
View Source
var G_fd_list map[string]interface{}
Functions ¶
This section is empty.
Types ¶
type Oraclecon ¶
type Oraclecon struct { Masterdb *sql.DB //Slavedb []*sql.DB Db_host string Db_user string Db_port string Db_name string Db_password string Where_param []interface{} SqlTx *sql.Tx Slock sync.RWMutex Page_start int Page_end int Tablename string Sql_where string Sql_order string Sql_fields string Is_open bool Sql_param []interface{} //Sql_limit string Db_perfix string PRK_editfd string Query_data []map[string]interface{} LastSqltext string }
var G_Dbcon *Oraclecon
func Get_New_Main_DB ¶
func Get_New_Main_DB() *Oraclecon
func NewOracle_Server_DB ¶
func (*Oraclecon) BeginStart ¶
func (*Oraclecon) Build_where ¶
func (*Oraclecon) Check_data_fields ¶
func (*Oraclecon) GetLastSql ¶
func (*Oraclecon) Get_fields_sql ¶
func (*Oraclecon) Get_fun_fields ¶
func (*Oraclecon) Get_new_add ¶
func (*Oraclecon) Get_where_data ¶
func (*Oraclecon) Init_Redis_Struct ¶
func (this *Oraclecon) Init_Redis_Struct()
func (*Oraclecon) Merge_And_where ¶
func (*Oraclecon) Merge_OR_where ¶
func (*Oraclecon) Update_redis ¶
Click to show internal directories.
Click to hide internal directories.