Skip to content

Commit 10695c8

Browse files
committed
test: update duckdb example
1 parent 880c5d3 commit 10695c8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

arrow-pg/examples/duckdb.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ pub struct DuckDBBackend {
2626
query_parser: Arc<NoopQueryParser>,
2727
}
2828

29+
#[derive(Debug)]
2930
struct DummyAuthSource;
3031

3132
#[async_trait]
@@ -44,7 +45,7 @@ impl AuthSource for DummyAuthSource {
4445

4546
#[async_trait]
4647
impl SimpleQueryHandler for DuckDBBackend {
47-
async fn do_query<'a, C>(&self, _client: &mut C, query: &str) -> PgWireResult<Vec<Response<'a>>>
48+
async fn do_query<C>(&self, _client: &mut C, query: &str) -> PgWireResult<Vec<Response>>
4849
where
4950
C: ClientInfo + Unpin + Send + Sync,
5051
{
@@ -152,12 +153,12 @@ impl ExtendedQueryHandler for DuckDBBackend {
152153
self.query_parser.clone()
153154
}
154155

155-
async fn do_query<'a, C>(
156+
async fn do_query<C>(
156157
&self,
157158
_client: &mut C,
158159
portal: &Portal<Self::Statement>,
159160
_max_rows: usize,
160-
) -> PgWireResult<Response<'a>>
161+
) -> PgWireResult<Response>
161162
where
162163
C: ClientInfo + Unpin + Send + Sync,
163164
{

0 commit comments

Comments
 (0)