sqlode/query_parser

Types

pub type ParseError {
  InvalidAnnotation(path: String, line: Int, detail: String)
  MissingSql(path: String, line: Int, name: String)
}

Constructors

  • InvalidAnnotation(path: String, line: Int, detail: String)
  • MissingSql(path: String, line: Int, name: String)

Values

pub fn error_to_string(error: ParseError) -> String
pub fn parse_file(
  path: String,
  engine: model.Engine,
  naming_ctx: naming.NamingContext,
  content: String,
) -> Result(List(query_ir.TokenizedQuery), ParseError)
Search Document