//OpenWithConfig - opens database connection with the incoming settings,
//if bad cfg income - use default cfg
opens database connection with the incoming settings,
if bad cfg income - use default cfg
// OpenWithConfig - opens database connection with the incoming settings // if bad cfg income - use default cfg
func (m *Model) OpenWithConfig(user, database, password string, cfg []byte) error {
	db, err := openWithOptions(user, database, password, cfg)
	if err != nil {
		return err
	}
	m.IDatabase = db
	m.isOpen = true
	return nil
}
func ( m * Model ) OpenWithConfig ( user , database , password string , cfg [ ] byte ) error { db , err := openWithOptions ( user , database , password , cfg ) if err != nil { return err } m . IDatabase = db m . isOpen = true return nil }
opens database connection with the incoming settings,
if bad cfg income - use default cfg
opens database connection with the incoming settings if bad cfg income - use default cfg
//Success we have a database connection