Skip to main content
Vane Data / Reference

vane.detach_function

vane.detach_function removes a registered SQL function from a Vane connection.

Signature

text
vane.detach_function(
    alias: str,
    *,
    connection: Any | None = None,
) -> None

Parameters

NameTypeDescriptionDefault
aliasstrName of the SQL function to removeRequired
connectionVane connection or NoneConnection that owns the function; defaults to vane.default_connection()None

Returns and errors

The function returns None. The underlying connection error is propagated if the named function cannot be removed.

Example

example.py
import vane




@vane.func(return_dtype="BIGINT")
def identity(value):
    return value




vane.attach_function(identity, parameters=["BIGINT"])
vane.detach_function("identity")
vane.close()