ontodev / valve.rs

A lightweight validation engine written in rust.
BSD 3-Clause "New" or "Revised" License
4 stars 0 forks source link

Examples of casting values for Postgres #14

Closed jamesaoverton closed 1 year ago

jamesaoverton commented 1 year ago

This adds a numeric table for testing with a column that should be a SQL integer, and some hacks to get both Postgres and SQLite to accept the integer values in this specific case. The general solution should probably look up the column's SQL type in the config and use that in the CAST (if the type is not TEXT).