# This file is managed by Chef.

[connections]          
# *WARNING* *WARNING* *WARNING* *WARNING* *WARNING* *WARNING*
# 
# The Snowflake user password is stored in plain text in this file.
# Pay special attention to the management of this file.
# Thank you.

accountname = <%= @accountname %>
username = <%= @username %>
password = '<%= @password %>'
dbname = <%= @dbname %>
schemaname = <%= @schemaname %>
warehousename = <%= @warehousename %>
rolename = <%= @rolename %>

[variables]
#Loads these variables on startup
#Can be used in SnowSql as select $example_variable

<% if node['snowflake']['cli']['variables'] %>
<% node['snowflake']['cli']['variables'].each do |snowflake_variable, value| %>

<%= snowflake_variable %>=<%= value %>

<% end %>
<% end %>

[options]
# If set to false auto-completion will not occur interactive mode.
auto_completion = <%= node['snowflake']['cli']['options']['auto_completion'] %>

# main log file location. The file includes the log from SnowSQL main
# executable.
log_file = <%= node['snowflake']['cli']['options']['log_file'] %>

# Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
# and "DEBUG".
log_level = <%= node['snowflake']['cli']['options']['log_level'] %>

# Timing of sql statments and table rendering.
timing = <%= node['snowflake']['cli']['options']['timing'] %>

# Table format. Possible values: psql, plain, simple, grid, fancy_grid, pipe,
# orgtbl, rst, mediawiki, html, latex, latex_booktabs, tsv.
# Recommended: psql, fancy_grid and grid.
output_format = <%= node['snowflake']['cli']['options']['output_format'] %>

# Keybindings: Possible values: emacs, vi.
# Emacs mode: Ctrl-A is home, Ctrl-E is end. All emacs keybindings are available in the REPL.
# When Vi mode is enabled you can use modal editing features offered by Vi in the REPL.
key_bindings = <%= node['snowflake']['cli']['options']['key_bindings'] %>
