-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,27 @@ $ cd rai-sdk-python | |
$ [sudo] pip install -e relationalai-snowflake-sdk | ||
``` | ||
|
||
### Usage | ||
|
||
Create a session according to [Snowpark API](https://docs.snowflake.com/en/developer-guide/snowpark/python/creating-session) | ||
|
||
```python | ||
from snowflake.snowpark import Session | ||
from relationalai.snowflake_sdk import api | ||
|
||
# | ||
connection_parameters = { | ||
"user": "...", | ||
# and any other connection parameters | ||
} | ||
|
||
session = Session.builder.configs(connection_parameters).create() | ||
|
||
api.use_schema(session, "#database.schema where RAI SQL Library is installed") | ||
|
||
api.create_database(session, "my-database") | ||
``` | ||
|
||
## Support | ||
|
||
You can reach the RAI developer support team at `[email protected]` | ||
|