Skip to content

Conversation

bharathts07
Copy link
Contributor

WHAT

  1. Add a notebook to demonstrate how to create a simple Singlestore Cloud function
  2. Add a notebook to demonstrate how to create a simple DashApp

WHY

  1. New features planned to be made GA soon.

@bharathts07 bharathts07 marked this pull request as ready for review November 7, 2024 19:27
@bharathts07 bharathts07 requested a review from kesmit13 November 8, 2024 01:08
"with open(ca_cert_path, \"wb\") as f:\n",
" f.write(response.content)\n",
"\n",
"sql_connection_string = connection_url.replace(\"singlestoredb\", \"mysql+pymysql\")\n",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you pulling out the singlestoredb driver and using pymysql?

Copy link

@srinathnarayanan srinathnarayanan Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a template for dashboards and cloud functions.
%%sql doesnt work in a multi threaded manner, which is why we need to use the sqlalchemy engine with a connection pool for now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still don't understand. Why doesn't SinlgeStoreDB work? PyMySQL has the exact same thread issues that the SingleStoreDB client does.

@bharathts07 bharathts07 marked this pull request as draft November 8, 2024 22:20
@bharathts07 bharathts07 marked this pull request as ready for review November 8, 2024 22:22
@bharathts07
Copy link
Contributor Author

I will merge and test this

@bharathts07 bharathts07 merged commit 69c6699 into master Nov 13, 2024
1 check passed
@bharathts07 bharathts07 deleted the bharath-templates branch November 13, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants