Skip to content

Commit

Permalink
fixup! feat(query): Fetch query response in JSON format.
Browse files Browse the repository at this point in the history
Fix the doctest.
  • Loading branch information
pravic committed Sep 19, 2024
1 parent 7b83d20 commit 476fd1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Query {
Ok(RowCursor(RowBinaryCursor::new(response)))
}

/// Executes the query, returning a [`RowJsonCursor`] to obtain results.
/// Executes the query, returning a [`watch::RowJsonCursor`] to obtain results.
#[cfg(feature = "watch")]
pub fn fetch_json<T>(mut self) -> Result<watch::RowJsonCursor<T>> {
self.sql.append(" FORMAT JSONEachRowWithProgress");
Expand Down

0 comments on commit 476fd1a

Please sign in to comment.