|
| static BaseScalarFunction | SetReturnsError (BaseScalarFunction &function) |
| static DUCKDB_API string | CallToString (const string &catalog_name, const string &schema_name, const string &name, const vector< LogicalType > &arguments, const LogicalType &varargs=LogicalType::INVALID) |
| | Returns the formatted string name(arg1, arg2, ...).
|
| static DUCKDB_API string | CallToString (const string &catalog_name, const string &schema_name, const string &name, const vector< LogicalType > &arguments, const LogicalType &varargs, const LogicalType &return_type) |
| | Returns the formatted string name(arg1, arg2..) -> return_type.
|
| static DUCKDB_API string | CallToString (const string &catalog_name, const string &schema_name, const string &name, const vector< LogicalType > &arguments, const named_parameter_type_map_t &named_parameters) |
| | Returns the formatted string name(arg1, arg2.., np1=a, np2=b, ...).
|
| static DUCKDB_API void | EraseArgument (SimpleFunction &bound_function, vector< unique_ptr< Expression > > &arguments, idx_t argument_index) |
| | Used in the bind to erase an argument from a function.
|
◆ BaseScalarFunction()
220854 : SimpleFunction(std::move(name_p), std::move(arguments_p), std::move(varargs_p)),
220857}
FunctionNullHandling null_handling
How this function handles NULL values.
Definition duckdb.hpp:14008
FunctionStability stability
The stability of the function (see FunctionStability enum for more info).
Definition duckdb.hpp:14006
LogicalType return_type
Return type of the function.
Definition duckdb.hpp:14004
FunctionCollationHandling collation_handling
Collation handling of the function.
Definition duckdb.hpp:14012
FunctionErrors errors
Whether or not this function can throw an error.
Definition duckdb.hpp:14010
◆ ~BaseScalarFunction()
| duckdb::BaseScalarFunction::~BaseScalarFunction |
( |
| ) |
|
|
override |
◆ SetReturnType()
| void duckdb::BaseScalarFunction::SetReturnType |
( |
LogicalType | return_type_p | ) |
|
|
inline |
◆ GetReturnType() [1/2]
| const LogicalType & duckdb::BaseScalarFunction::GetReturnType |
( |
| ) |
const |
|
inline |
◆ GetReturnType() [2/2]
| LogicalType & duckdb::BaseScalarFunction::GetReturnType |
( |
| ) |
|
|
inline |
◆ GetStability()
◆ SetStability()
◆ GetNullHandling()
◆ SetNullHandling()
◆ GetErrorMode()
◆ SetErrorMode()
| void duckdb::BaseScalarFunction::SetErrorMode |
( |
FunctionErrors | errors_p | ) |
|
|
inline |
◆ SetFallible()
| void duckdb::BaseScalarFunction::SetFallible |
( |
| ) |
|
|
inline |
Set this functions error-mode as fallible (can throw runtime errors).
13987 {
13988 errors = FunctionErrors::CAN_THROW_RUNTIME_ERROR;
13989 }
◆ SetVolatile()
| void duckdb::BaseScalarFunction::SetVolatile |
( |
| ) |
|
|
inline |
Set this functions stability as volatile (can not be cached per row).
13991 {
13992 stability = FunctionStability::VOLATILE;
13993 }
◆ SetCollationHandling()
◆ GetCollationHandling()
◆ SetReturnsError()
| BaseScalarFunction duckdb::BaseScalarFunction::SetReturnsError |
( |
BaseScalarFunction & | function | ) |
|
|
inlinestatic |
14014 {
14015 function.errors = FunctionErrors::CAN_THROW_RUNTIME_ERROR;
14016 return function;
14017 }
◆ Hash()
| hash_t duckdb::BaseScalarFunction::Hash |
( |
| ) |
const |
220886 {
220890 }
220891 return hash;
220892}
vector< LogicalType > arguments
The set of arguments of the function.
Definition duckdb.hpp:13917
internal::named_arg< T, Char > arg(const S &name, const T &arg)
Definition duckdb.cpp:16242
uint64_t hash_t
The type used for hashes.
Definition duckdb.hpp:243
hash_t CombineHash(hash_t left, hash_t right)
Combine two hashes by XORing them.
Definition duckdb.hpp:4635
◆ ToString()
| string duckdb::BaseScalarFunction::ToString |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from duckdb::SimpleFunction.
220862 {
220864}
string name
The name of the function.
Definition duckdb.hpp:13881
static DUCKDB_API string CallToString(const string &catalog_name, const string &schema_name, const string &name, const vector< LogicalType > &arguments, const LogicalType &varargs=LogicalType::INVALID)
Returns the formatted string name(arg1, arg2, ...).
Definition duckdb.cpp:220899
LogicalType varargs
Definition duckdb.hpp:13923
The documentation for this class was generated from the following files: