pub fn analyze(
ddl: &[String],
sql: &str,
sent: &str,
functions: &[(&str, i32)],
host: Option<&[Listed<'_>]>,
) -> Result<Tree, String>Expand description
Prepares sql against the schema ddl inside the embedded SQLite and returns what it resolved.
functions are the host’s own scalar functions, by name and argument count (-1 for any): the
replay registers a stub for each, so a statement that calls one prepares. host is every
function the host’s SQLite has, when the host could list them: the replay registers a stub for
one the embedded build has no function of that name for, and the prepare refuses a call to one
the embedded build has and the host does not. sent is the statement as the application runs it,
whose text names the columns.