# vi: ft=dosini
[main]

# Multi-line mode allows breaking up the sql statements into multiple lines. If
# this is set to True, then the end of the statements must have a semi-colon.
# If this is set to False then sql statements can't be split into multiple
# lines. End of line (return) is considered as the end of the statement.
multi_line = False

# log_file location.
# In Unix/Linux: ~/.config/odbcli/log
# In Windows: %USERPROFILE%\AppData\Local\dbcli\odbcli\log
# %USERPROFILE% is typically C:\Users\{username}
log_file = default

# history_file location.
# In Unix/Linux: ~/.config/odbcli/history
# In Windows: %USERPROFILE%\AppData\Local\dbcli\odbcli\history
# %USERPROFILE% is typically C:\Users\{username}
history_file = default

# Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
# and "DEBUG". "NONE" disables logging.
log_level = INFO

# Mouse support.  Limited mouse support for positioning the cursor, for
# scrolling, and for clicking in the autocompletions menu.  Recommended
# False, as it may cause surprising behavior when trying to use the mouse.
mouse_support = False

# Default pager.
# By default 'PAGER' environment variable is used
# pager = less -SRXF

# Number of lines to rserve for pager non-content output
# When table format is psql, for less this is 1, pypager 2.  Internally we use
# this number to fetch just enough rows of data so that we can fit the table
# columns at the top of each page - therefore this number also depends on the
# format used
pager_reserve_lines = 1

# Timing of sql statement execution.
timing = True

# Table format. Possible values: psql, plain, simple, grid, fancy_grid, pipe,
# ascii, double, github, orgtbl, rst, mediawiki, html, latex, latex_booktabs,
# textile, moinmoin, jira, vertical, tsv, csv.
# Recommended: psql, fancy_grid and grid.
table_format = psql

# Syntax Style. Possible values: manni, igor, xcode, vim, autumn, vs, rrt,
# native, perldoc, borland, tango, emacs, friendly, monokai, paraiso-dark,
# colorful, murphy, bw, pastie, paraiso-light, trac, default, fruity
syntax_style = default

# Keybindings:
# When Vi mode is enabled you can use modal editing features offered by Vi in the REPL.
# When Vi mode is disabled emacs keybindings such as Ctrl-A for home and Ctrl-E
# for end are available in the REPL.
vi = False

# Number of lines to reserve for the suggestion menu
min_num_menu_lines = 5


# When viewing the results of a query in the main execution prompt of the client
# this option determines how many (expressed as a multiplier of the number of
# rows on the screen) results to pre-fetch before displaying the results screen.
# The fetch operation is asynchronous / in a background process; this option
# essentially determines the trade-off between smooth scrolling through the
# results (higher multiplier) and how quickly the initial results are displayed
# on the screen (lower multiplier).  Generally a number >= 3 is recommended.
fetch_chunk_multiplier = 5

# When previewing a table we SELECT *.  If preview_limit_rows is > 0
# we attempt to limit the maximum number of rows fetched to this number.
preview_limit_rows = 500

# When previewing a table, the asynchronous operation will fetch all the
# results from the SELECT query in chunks of fixed sizes asynchronously.
# This number should generally be larger than the number of rows on the screen
# but comfortably less than the total number of rows limited by
# preview_limit_rows.  More likely than not, you should not need to change this
# number.
preview_fetch_chunk_size = 100

# Custom colors for the completion menu, toolbar, etc.
[colors]
completion-menu.completion.current = 'bg:#ffffff #000000'
completion-menu.completion = 'bg:#008888 #ffffff'
completion-menu.meta.completion.current = 'bg:#44aaaa #000000'
completion-menu.meta.completion = 'bg:#448888 #ffffff'
completion-menu.multi-column-meta = 'bg:#aaffff #000000'
scrollbar.arrow = 'bg:#003333'
scrollbar = 'bg:#00aaaa'
selected = '#ffffff bg:#6666aa'
search = '#ffffff bg:#4444aa'
search.current = '#ffffff bg:#44aa44'
bottom-toolbar = 'bg:#222222 #aaaaaa'
bottom-toolbar.off = 'bg:#222222 #888888'
bottom-toolbar.on = 'bg:#222222 #ffffff'
search-toolbar = 'noinherit bold'
search-toolbar.text = 'nobold'
system-toolbar = 'noinherit bold'
arg-toolbar = 'noinherit bold'
arg-toolbar.text = 'nobold'
bottom-toolbar.transaction.valid = 'bg:#222222 #00ff5f bold'
bottom-toolbar.transaction.failed = 'bg:#222222 #ff005f bold'
literal.string = '#ba2121'
literal.number = '#666666'
keyword = 'bold #008000'

preview-output-field = 'bg:#000044 #ffffff'
preview-input-field = 'bg:#000066 #ffffff'
preview-divider-line = '#000000'
status-toolbar = "bg:#222222 #aaaaaa"
status-toolbar.title = "underline"
status-toolbar.inputmode = "bg:#222222 #ffffaa"
status-toolbar.key = "bg:#000000 #888888"
status-toolbar.pastemodeon = "bg:#aa4444 #ffffff"
status-toolbar.cli-version = "bg:#222222 #ffffff bold"
status-toolbar paste-mode-on = "bg:#aa4444 #ffffff"
record = "bg:#884444 white"
status-toolbar.input-mode = "#ffff44"
status-toolbar.conn-executing = "bg:red #ffff44"
status-toolbar.conn-fetching = "bg:yellow black"
status-toolbar.conn-idle = "bg:#668866 #ffffff"
# The options sidebar.
sidebar = "bg:#bbbbbb #000000"
sidebar.title = "bg:#668866 fg:#ffffff"
sidebar.label = "bg:#bbbbbb fg:#222222"
sidebar.status = "bg:#dddddd #000011"
sidebar.label selected = "bg:#222222 #eeeeee bold"
sidebar.status selected = "bg:#444444 #ffffff bold"
sidebar.label active = "bg:#668866 #ffffff"
sidebar.status active = "bg:#88AA88 #ffffff"
sidebar.separator = "underline"
sidebar.navigation.key = "bg:#bbddbb #000000 bold"
sidebar.navigation.description = "bg:#dddddd #000011"
sidebar.navigation = "bg:#dddddd"
sidebar.helptext = "bg:#fdf6e3 #000011"

# Exit confirmation
exit-confirmation = "bg:#884444 #ffffff"

# style classes for colored table output
output.header = "#00ff5f bold"
output.odd-row = ""
output.even-row = ""
output.null = "#808080"
