func AddDbL(key, driver, url string, idle, max int) error { mdbs, err := dbm.NewMDbs(NewSQL_H(driver, url, idle, max)) if err == nil { DbL[key] = mdbs } return err }
func AddDbL(key, url, name string) error { mdbs, err := dbm.NewMDbs(NewMGO_H(url, name)) if err == nil { DbL[key] = mdbs } return err }
func NewMDbs(url, name string) (*MDbs, error) { mdbs, err := dbm.NewMDbs(NewMGO_H(url, name)) return &MDbs{MDbs: mdbs}, err }