Skip to main content

SQLTableFunction

Trait SQLTableFunction 

Source
pub trait SQLTableFunction: Send + Sync {
    // Provided methods
    fn output_columns(&self) -> Option<&[String]> { ... }
    fn call(&self, _args: &[Value]) -> Result<SQLTableFunctionResult, SQLError> { ... }
    fn call_stream(
        &self,
        args: &[Value],
    ) -> Result<SQLTableFunctionStream, SQLError> { ... }
    fn call_with_context(
        &self,
        _context: &SQLFunctionContext,
        args: &[Value],
    ) -> Result<SQLTableFunctionResult, SQLError> { ... }
    fn call_stream_with_context(
        &self,
        _context: &SQLFunctionContext,
        args: &[Value],
    ) -> Result<SQLTableFunctionStream, SQLError> { ... }
}
Expand description

Rust implementation of a SQL table function used in FROM.

Provided Methods§

Source

fn output_columns(&self) -> Option<&[String]>

Stable, nonempty output names, independent of argument values and scan creation. A declared descriptor permits binding correlated and empty sources without executing the callback. Every call must return these columns in this order. None retains the runtime-described call interface.

Source

fn call(&self, _args: &[Value]) -> Result<SQLTableFunctionResult, SQLError>

Source

fn call_stream( &self, args: &[Value], ) -> Result<SQLTableFunctionStream, SQLError>

Source

fn call_with_context( &self, _context: &SQLFunctionContext, args: &[Value], ) -> Result<SQLTableFunctionResult, SQLError>

Source

fn call_stream_with_context( &self, _context: &SQLFunctionContext, args: &[Value], ) -> Result<SQLTableFunctionStream, SQLError>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§