Skip to main content

int_parameter

Function int_parameter 

Source
fn int_parameter<T>(
    data: Option<T>,
    server_type: Option<&ConcreteDataType>,
    client_type: &Type,
    unconverted: fn(Option<T>) -> ScalarValue,
) -> PgWireResult<ScalarValue>
where T: ToPrimitive + Display + Into<i64>,
Expand description

Converts an integer parameter to an integer or timestamp server type. Without a server type, the value keeps the client’s width.