// OpenDialect opens a dialect via driver name and connection string
OpenDialect opens a dialect via driver name and connection string
// OpenDialect opens a dialect via driver name and connection string
func OpenDialect(dialect constants.DIALECT, connstr string) (intf.Dialect, error) {
	driver := drivers[dialect] 
	if driver == nil {
		return nil, fmt.Errorf("unsupported driver name: %v", dialect)
	}
	uri, err := driver.Parse(dialect, connstr)
	if err != nil {
		return nil, err
	}
	dial := driver.GetDialect() 
	if dial == nil {
		return nil, fmt.Errorf("unsupported dialect type: %v", uri.DRIVER)
	}
	dial.Init(uri)
	return dial, nil
}
func OpenDialect ( dialect constants . DIALECT , connstr string ) ( intf . Dialect , error ) { driver := drivers [ dialect ] if driver == nil { return nil , fmt . Errorf ( " " , dialect ) } uri , err := driver . Parse ( dialect , connstr ) if err != nil { return nil , err } dial := driver . GetDialect ( ) if dial == nil { return nil , fmt . Errorf ( " " , uri . DRIVER ) } dial . Init ( uri ) return dial , nil }
OpenDialect opens a dialect via driver name and connection string
OpenDialect opens a dialect via driver name and connection string
// GetDriver(driverName) //  GetDialect(uri.DRIVER)