pub fn run(db: &Arc<Db>, statement: &str) -> Result<Vec<Value>, String>Expand description
Run a neSQL statement, routing on the leading keyword.
The one place in the engine that turns “here is a statement” into rows
regardless of which half it is written in. POST /query, /subscribe and
the language bindings all come through here, so “NEDB speaks NQL and SQL”
is one function rather than a property each caller has to remember to
implement.
Returns the error TEXT rather than a typed error because every caller surfaces it to a client as a string, and a bespoke error enum here would be converted back to a string at each of them.