Snowflex (Snowflex v0.4.4)
The client interface for connecting to the Snowflake data warehouse.
The main entry point to this module is Snowflex.sql_query
. This function takes a string containing
a SQL query and returns a list of maps (one per row). NOTE: due to the way the Erlang ODBC works, all values comeback
as strings. You will need to cast values appropriately.
Link to this section Summary
Link to this section Types
Link to this type
odbc_data_type()
Specs
odbc_data_type() :: :sql_integer | :sql_smallint | :sql_tinyint | {:sql_decimal, precision(), scale()} | {:sql_numeric, precision(), scale()} | {:sql_char, size()} | {:sql_wchar, size()} | {:sql_varchar, size()} | {:sql_wvarchar, size()} | {:sql_float, precision()} | {:sql_wlongvarchar, size()} | {:sql_float, precision()} | :sql_real | :sql_double | :sql_bit | atom()
Link to this type
precision()
Specs
precision() :: integer()
Link to this type
query_opts()
Specs
Link to this type
query_param()
Specs
query_param() :: {odbc_data_type(), [value()]}
Link to this type
scale()
Specs
scale() :: integer()
Link to this type
size()
Specs
size() :: integer()
Link to this type
sql_data()
Specs
Link to this type
value()
Specs
value() :: nil | term()
Link to this section Functions
Link to this function
cast_results(data, schema)
Link to this function
int_param(val)
Link to this function
param_query(pool_name, query, params, opts)
Specs
param_query(atom(), String.t(), [query_param()], query_opts()) :: sql_data() | {:error, term()} | {:updated, integer()}
Link to this function
sql_query(pool_name, query, opts)
Specs
Link to this function