createFunction
abstract fun createFunction(name: String, argumentCount: Int, encoding: SqliteFunctionTextEncoding, function: ScalarFunction): Registration(source)
Creates the scalar function name(argumentCount), or replaces it if one was already created with the same name, argument count and encoding, and returns a handle that removes it again once closed.
Throws
if an error happened while creating the function.
abstract fun createFunction(name: String, argumentCount: Int, encoding: SqliteFunctionTextEncoding, function: AggregateFunction): Registration(source)
Creates the aggregate function name(argumentCount), or replaces it if one was already created with the same name, argument count and encoding, and returns a handle that removes it again once closed.
Throws
if an error happened while creating the function.
abstract fun createFunction(name: String, argumentCount: Int, encoding: SqliteFunctionTextEncoding, function: WindowFunction): Registration(source)
Creates the window function name(argumentCount), or replaces it if one was already created with the same name, argument count and encoding, and returns a handle that removes it again once closed.
Throws
if an error happened while creating the function.