pub struct TableFunction { /* private fields */ }
Expand description

A function that returns a queryable table

Implementations

Sets whether or not the given table function supports projection pushdown.

If this is set to true, the system will provide a list of all required columns in the init stage through the InitInfo::get_column_indices method. If this is set to false (the default), the system will expect all columns to be projected.

Arguments
  • pushdown: True if the table function supports projection pushdown, false otherwise.

Adds a parameter to the table function.

Arguments
  • logical_type: The type of the parameter to add.

Sets the main function of the table function

Arguments
  • function: The function

Sets the init function of the table function

Arguments
  • function: The init function

Sets the bind function of the table function

Arguments
  • function: The bind function

Creates a new empty table function.

Sets the name of the given table function.

Arguments
  • name: The name of the table function

Assigns extra information to the table function that can be fetched during binding, etc.

Arguments
  • extra_info: The extra information
  • destroy: The callback that will be called to destroy the bind data (if any)
Safety

Sets the thread-local init function of the table function

Arguments
  • init: The init function

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.