sqlode/query_analyzer/param_inferencer

Values

pub fn extract_type_casts(
  ctx: context.AnalyzerContext,
  engine: model.Engine,
  tokens: List(lexer.Token),
) -> Result(dict.Dict(Int, model.ScalarType), #(Int, String))
pub fn infer_equality_params(
  ctx: context.AnalyzerContext,
  engine: model.Engine,
  query_name: String,
  tokens: List(lexer.Token),
  catalog: model.Catalog,
) -> Result(List(#(Int, model.Column)), context.AnalysisError)
pub fn infer_in_params(
  ctx: context.AnalyzerContext,
  engine: model.Engine,
  query_name: String,
  tokens: List(lexer.Token),
  catalog: model.Catalog,
) -> Result(List(#(Int, model.Column)), context.AnalysisError)
pub fn infer_insert_params(
  ctx: context.AnalyzerContext,
  engine: model.Engine,
  tokens: List(lexer.Token),
  catalog: model.Catalog,
) -> List(#(Int, model.Column))
pub fn infer_insert_params_from_ir(
  engine: model.Engine,
  statement: query_ir.SqlStatement,
  catalog: model.Catalog,
) -> List(#(Int, model.Column))

Structured IR variant of infer_insert_params. Consumes the pre-parsed InsertStatement directly instead of re-scanning the token list.

Search Document