nodedb 0.4.0

Local-first, real-time, edge-to-cloud hybrid database for multi-modal workloads
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: BUSL-1.1

//! Result-shaping inputs for simple and prepared pgwire execution.

use pgwire::api::results::FieldFormat;

use crate::control::server::response_shape::schema::OutputSchema;

#[derive(Clone, Copy)]
pub(in crate::control::server::pgwire::handler) struct ResultShaping<'a> {
    pub projection: Option<&'a OutputSchema>,
    pub formats: &'a [FieldFormat],
}