~olly/yoyo

1

[PATCH] Support for snowflake connect parameters

Charles Julian Knight <midjtxc@gmail.com>
Details
Message ID
<1877b318c67a8058f296.1617847102@1.0.0.127.in-addr.arpa>
DKIM signature
missing
Download raw message
# HG changeset patch
# User Charles Julian Knight <julian@fixdapp.com>
# Date 1617846311 14400
#      Wed Apr 07 21:45:11 2021 -0400
# Node ID 1877b318c67a8058f296211dfd34b1de28e693e8
# Parent  b4d81daa2515ad7ab9e0def1dd2894f235e7b667
Support for snowflake connect parameters

For the snowflake database, I ended up needing to configure the role option.

This change passes all query options to 'snowflake.connector', allowing you
to set any of the parameters snowflake supports. The full list is available
here:

https://docs.snowflake.com/en/user-guide/python-connector-api.html#connect

Julian

diff -r b4d81daa2515 -r 1877b318c67a yoyo/backends.py
--- a/yoyo/backends.py	Tue Apr 06 12:39:58 2021 +0000
+++ b/yoyo/backends.py	Wed Apr 07 21:45:11 2021 -0400
@@ -791,7 +791,7 @@
             account=dburi.hostname,
             database=database,
             schema=schema,
-            warehouse=dburi.args["warehouse"],
+            **dburi.args,
         )
 
     def savepoint(self, id):
Details
Message ID
<20210414075119.z3t6xf2twu3mggyv@hooper>
In-Reply-To
<1877b318c67a8058f296.1617847102@1.0.0.127.in-addr.arpa> (view parent)
DKIM signature
missing
Download raw message
On 07/04/2021, Charles Julian Knight wrote:
># HG changeset patch
># User Charles Julian Knight <julian@fixdapp.com>
># Date 1617846311 14400
>#      Wed Apr 07 21:45:11 2021 -0400
># Node ID 1877b318c67a8058f296211dfd34b1de28e693e8
># Parent  b4d81daa2515ad7ab9e0def1dd2894f235e7b667
>Support for snowflake connect parameters
>
>For the snowflake database, I ended up needing to configure the role option.
>
>This change passes all query options to 'snowflake.connector', allowing you
>to set any of the parameters snowflake supports. The full list is available
>here:
>
Looks good, I just merged this. Thanks!

Olly.
Reply to thread Export thread (mbox)