trovares_connector.SnowflakeODBCDriver#
- class trovares_connector.SnowflakeODBCDriver(connection_string: str, ansi_conversion: bool = True)[source]#
- __init__(connection_string: str, ansi_conversion: bool = True)[source]#
Initializes the driver class.
- Parameters:
connection_string (str) – Standard ODBC connection string used for connecting to Snowflake. Example: ‘DSN=snowflake;Database=test;Warehouse=test;Uid=test;Pwd=test;’
ansi_conversion (bool) – Convert Number(38,0) into int64s in xGT if true. Otherwise, they are stored as floats. This based on the ANSI int conversion Snowflake does and reverses that. By default true.
Methods
__init__
(connection_string[, ansi_conversion])Initializes the driver class.
- __init__(connection_string: str, ansi_conversion: bool = True)[source]#
Initializes the driver class.
- Parameters:
connection_string (str) – Standard ODBC connection string used for connecting to Snowflake. Example: ‘DSN=snowflake;Database=test;Warehouse=test;Uid=test;Pwd=test;’
ansi_conversion (bool) – Convert Number(38,0) into int64s in xGT if true. Otherwise, they are stored as floats. This based on the ANSI int conversion Snowflake does and reverses that. By default true.