func (c *client) DBExists(ctx context.Context, dbName string, options map[string]interface{}) (bool, error) {
	opts, err := c.options(options, Options{"skip_setup": true})
	if err != nil {
		return false, err
	}
	_, err = c.pouch.New(c.dbURL(dbName), opts).Info(ctx)
	if err == nil {
		return true, nil
	}
	if errors.StatusCode(err) == http.StatusNotFound {
		return false, nil
	}
	return false, err
}
// DBExists returns true if the requested DB exists. This function only works
// for remote databases. For local databases, it creates the database.
// Silly PouchDB.
DBExists returns true if the requested DB exists. This function only works
for remote databases. For local databases, it creates the database.
Silly PouchDB.
// DBExists returns true if the requested DB exists . This function only works // for remote databases . For local databases it creates the database . // Silly PouchDB .
func (c *client) DBExists(ctx context.Context, dbName string, options map[string]interface{}) (bool, error) {
	opts, err := c.options(options, Options{"skip_setup": true})
	if err != nil {
		return false, err
	}
	_, err = c.pouch.New(c.dbURL(dbName), opts).Info(ctx)
	if err == nil {
		return true, nil
	}
	if errors.StatusCode(err) == http.StatusNotFound {
		return false, nil
	}
	return false, err
}
func ( c * client ) DBExists ( ctx context . Context , dbName string , options map [ string ] interface { } ) ( bool , error ) { opts , err := c . options ( options , Options { " " : true } ) if err != nil { return false , err } _ , err = c . pouch . New ( c . dbURL ( dbName ) , opts ) . Info ( ctx ) if err == nil { return true , nil } if errors . StatusCode ( err ) == http . StatusNotFound { return false , nil } return false , err }
DBExists returns true if the requested DB exists.
DBExists returns true if the requested DB exists .