Skip to content

Commit d4b6853

Browse files
added create_script
1 parent 9e43fc4 commit d4b6853

10 files changed

Lines changed: 719 additions & 14 deletions

File tree

.github/workflows/checks.yml

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/unreleased.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Code name: T.B.D
2828
* #381: Added Transformation for removing columns from DataFrame
2929
* #353: Added "AI_SENTIMENT" UDF
3030
* #390: Added "AI_CLASSIFY" and "AI_EXTRACT_ENTITIES" UDF's
31+
* #391: Added sql create_script to create all UDF's in Database.
3132

3233
## Security
3334

doc/developer_guide/developer_guide.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ been defined. We created separate UDF scripts for each NLP task. You can find
7373
these tasks and UDF script usage details in the [User Guide](../user_guide/invoke_models.md).
7474
This section shows you step by step how to add a new NLP task to this library.
7575

76+
** Note: ** After you finish adding you UDF, please run the "write_create_script"
77+
function to generate an updated version of the create_script.
78+
7679
### 1. Add a UDF Template
7780
The new task's UDF template should be added to the `exasol_transformers_extension/resources/templates/`
7881
directory. Please pay attention that the UDF script is uses _"SET UDF"_ and the inputs

doc/user_guide/setup.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Here you find information on prerequisites for using the Transformers Extension,
2121
* [Deploy the Extension to the Database](#deploy-the-extension-to-the-database)
2222
* [The Pre-built Language Container](#the-pre-built-language-container)
2323
* [List of Options](#list-of-options)
24+
* [Create Script](#create-script)
2425

2526
## Prerequisites
2627

@@ -37,7 +38,7 @@ Normally, the connection object is created as part of the Transformers Extension
3738

3839
This section describes how this object can be created manually.
3940

40-
The format of the connection object is as following:
41+
The format of the connection object is as follows:
4142
```sql
4243
CREATE OR REPLACE CONNECTION <BUCKETFS_CONNECTION_NAME>
4344
TO '<BUCKETFS_ADDRESS>'
@@ -60,7 +61,7 @@ It is also possible to create this connection manually. This works like
6061
any other Exasol BucketFS connection, but needs to have the name "EXA_AI_MODEL_LOCATION".
6162

6263
```sql
63-
CREATE OR REPLACE CONNECTION <EXA_AI_MODEL_LOCATION>
64+
CREATE OR REPLACE CONNECTION EXA_AI_MODEL_LOCATION
6465
TO '<BUCKETFS_ADDRESS>'
6566
USER '<BUCKETFS_USER>'
6667
IDENTIFIED BY '<BUCKETFS_PASSWORD>'
@@ -228,3 +229,7 @@ In addition, this extension provides the following installation options:
228229
| `--token-conn-name` | | Optional. Name of the [token connection object](#hugging-face-token) if required. If empty will not create connection object |
229230
| `--token` | | Optional. The [Huggingface token](#hugging-face-token) if required |
230231

232+
#### Create Script
233+
234+
There is a SQL script called in "exasol_transformers_extension/deployment/create_script.sql". You can run this script
235+
to install the udfs (not the SLC) in your Exasol Database.

0 commit comments

Comments
 (0)