Skip to content

Commit

Permalink
update README on how to use the SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
antikus committed Oct 25, 2023
1 parent 6985a10 commit a374821
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions relationalai-snowflake-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]`
Expand Down

0 comments on commit a374821

Please sign in to comment.