func (db *DB) Query(ctx context.Context, ddoc, view string, options ...Options) (*Rows, error) {
	opts, err := mergeOptions(options...)
	if err != nil {
		return nil, err
	}
	ddoc = strings.TrimPrefix(ddoc, "_design/")
	view = strings.TrimPrefix(view, "_view/")
	rowsi, err := db.driverDB.Query(ctx, ddoc, view, opts)
	if err != nil {
		return nil, err
	}
	return newRows(ctx, rowsi), nil
}
// Query executes the specified view function from the specified design
// document. ddoc and view may or may not be be prefixed with '_design/'
// and '_view/' respectively. No other
Query executes the specified view function from the specified design
document. ddoc and view may or may not be be prefixed with '_design/'
and '_view/' respectively. No other
// Query executes the specified view function from the specified design // document . ddoc and view may or may not be be prefixed with ' _design / ' // and ' _view / ' respectively . No other
func (db *DB) Query(ctx context.Context, ddoc, view string, options ...Options) (*Rows, error) {
	opts, err := mergeOptions(options...)
	if err != nil {
		return nil, err
	}
	ddoc = strings.TrimPrefix(ddoc, "_design/")
	view = strings.TrimPrefix(view, "_view/")
	rowsi, err := db.driverDB.Query(ctx, ddoc, view, opts)
	if err != nil {
		return nil, err
	}
	return newRows(ctx, rowsi), nil
}
func ( db * DB ) Query ( ctx context . Context , ddoc , view string , options ... Options ) ( * Rows , error ) { opts , err := mergeOptions ( options ... ) if err != nil { return nil , err } ddoc = strings . TrimPrefix ( ddoc , " " ) view = strings . TrimPrefix ( view , " " ) rowsi , err := db . driverDB . Query ( ctx , ddoc , view , opts ) if err != nil { return nil , err } return newRows ( ctx , rowsi ) , nil }
Query executes the specified view function from the specified design
document.
Query executes the specified view function from the specified design document .