-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Validate queries at runtime as to always have a way to determine why a query might not be working. Either require a result or fail gracefully with a warning log at runtime.
fn against(
query: Query(index, record, binding),
row: row,
) -> Result(shape, List(String)) {
case ffi_test_query(query, row) {
NoMatch -> Error(["no match"])
Spec(shape) -> Ok(shape)
Invalid(errors) -> Error(list.map(errors, charlist.to_string))
}
}Metadata
Metadata
Assignees
Labels
No labels