SqliteFunction

Trait SqliteFunction 

Source
pub trait SqliteFunction:
    Send
    + Sync
    + 'static {
    // Required methods
    fn name(&self) -> &str;
    fn num_args(&self) -> i32;

    // Provided method
    fn deterministic(&self) -> bool { ... }
}
Expand description

A Rust function that can be registered as a SQLite UDF.

Required Methods§

Source

fn name(&self) -> &str

The name of the function.

Source

fn num_args(&self) -> i32

The number of arguments (-1 for variadic).

Provided Methods§

Source

fn deterministic(&self) -> bool

Whether the function is deterministic.

Implementors§