sqlode/schema_parser

Types

pub type ParseError {
  InvalidCreateTable(path: String, detail: String)
  InvalidColumn(path: String, table: String, detail: String)
}

Constructors

  • InvalidCreateTable(path: String, detail: String)
  • InvalidColumn(path: String, table: String, detail: String)
pub type SchemaWarning {
  UnresolvableViewColumn(column: String)
}

Constructors

  • UnresolvableViewColumn(column: String)

Values

pub fn error_to_string(error: ParseError) -> String
pub fn parse_files(
  entries: List(#(String, String)),
) -> Result(#(model.Catalog, List(SchemaWarning)), ParseError)
pub fn parse_files_with_engine(
  entries: List(#(String, String)),
  engine: model.Engine,
) -> Result(#(model.Catalog, List(SchemaWarning)), ParseError)
pub fn warning_to_string(warning: SchemaWarning) -> String
Search Document