Function sqlx_ts::core::postgres::prepare::prepare

source ·
pub fn prepare<'a>(
    sql: &SQL,
    should_generate_types: &bool,
    handler: &Handler
) -> (bool, Option<TsQuery>)
Expand description

Runs the prepare statement on the input SQL. Validates the query is right by directly connecting to the configured database. It also processes ts interfaces if the configuration is set to generate_types = true