Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
238 changes: 201 additions & 37 deletions accel.c

Large diffs are not rendered by default.

14 changes: 13 additions & 1 deletion singlestoredb/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,18 @@
environ=['SINGLESTOREDB_EXT_FUNC_LOG_LEVEL'],
)

register_option(
'external_function.name_prefix', 'string', check_str, '',
'Prefix to add to external function names.',
environ=['SINGLESTOREDB_EXT_FUNC_NAME_PREFIX'],
)

register_option(
'external_function.name_suffix', 'string', check_str, '',
'Suffix to add to external function names.',
environ=['SINGLESTOREDB_EXT_FUNC_NAME_SUFFIX'],
)

register_option(
'external_function.connection', 'string', check_str,
os.environ.get('SINGLESTOREDB_URL') or None,
Expand All @@ -415,7 +427,7 @@
)

register_option(
'external_function.host', 'string', check_str, '127.0.0.1',
'external_function.host', 'string', check_str, 'localhost',
'Specifies the host to bind the server to.',
environ=['SINGLESTOREDB_EXT_FUNC_HOST'],
)
Expand Down
4 changes: 4 additions & 0 deletions singlestoredb/functions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
from .decorator import tvf # noqa: F401
from .decorator import tvf_with_null_masks # noqa: F401
from .decorator import udf # noqa: F401
from .decorator import udf_with_null_masks # noqa: F401
from .typing import Masked # noqa: F401
from .typing import MaskedNDArray # noqa: F401
Loading
Loading