Skip to main content

FUNCTIONS_QUERY

Constant FUNCTIONS_QUERY 

Source
pub const FUNCTIONS_QUERY: &str = "select name, narg, type from pragma_function_list";
Expand description

The functions the host’s SQLite has, which decide what a statement may call: SQLite builds differ in them (the math functions, soundex, a newer release’s additions), and the embedded one has every optional family, so it alone would accept a call the host then refuses to run. The replayed entry asks the host for it; a host with a connection of its own runs it there and hands the rows to Extras::host through host_functions. A SQLite that cannot answer (an old one whose pragma lacks these columns, or a service that refuses the pragma) is taken to have what the embedded one has.