// SetName sets the database name
SetName sets the database name
// SetName sets the database name
func (pu PoolURL) SetName(dbName string) PoolURL {
	u, err := url.Parse(string(pu))
	if err != nil {
		panic(err)
	}
	u.Path = dbName
	return PoolURL(u.String())
}
func ( pu PoolURL ) SetName ( dbName string ) PoolURL { u , err := url . Parse ( string ( pu ) ) if err != nil { panic ( err ) } u . Path = dbName return PoolURL ( u . String ( ) ) }
SetName sets the database name
SetName sets the database name