//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) OpenWithDefault(user, database, password string) error {
	db, err := openWithDefaultOpts(user, database, password)
	if err != nil {
		return err
	}
	m.IDatabase = db
	m.isOpen = true
	return nil
}
func ( m * Model ) OpenWithDefault ( user , database , password string ) error { db , err := openWithDefaultOpts ( user , database , password ) 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