aboutsummaryrefslogtreecommitdiff
path: root/Common
diff options
context:
space:
mode:
authorjakob.stendahl <jakob.stendahl@infomedia.dk>2024-04-11 18:19:51 +0200
committerjakob.stendahl <jakob.stendahl@infomedia.dk>2024-04-11 18:19:51 +0200
commit1ca10664fbac7050271c99e19772e6582e2bfb93 (patch)
tree318aafa6a147416bca6617bc8250c1aa30d1b5bf /Common
parentc163ded79bb284c2b2bc1ed8fdddfcb8ede60806 (diff)
downloaddotfiles-1ca10664fbac7050271c99e19772e6582e2bfb93.tar.gz
dotfiles-1ca10664fbac7050271c99e19772e6582e2bfb93.zip
Mycli
Diffstat (limited to 'Common')
-rw-r--r--Common/my.cnf2
-rw-r--r--Common/myclirc85
2 files changed, 87 insertions, 0 deletions
diff --git a/Common/my.cnf b/Common/my.cnf
new file mode 100644
index 0000000..93054c0
--- /dev/null
+++ b/Common/my.cnf
@@ -0,0 +1,2 @@
+[client]
+pager = 'pspg -s 0'
diff --git a/Common/myclirc b/Common/myclirc
new file mode 100644
index 0000000..2dde959
--- /dev/null
+++ b/Common/myclirc
@@ -0,0 +1,85 @@
+[main]
+
+# Enables context sensitive auto-completion. If this is disabled then all
+# possible completions will be listed.
+smart_completion = True
+
+# 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 = True
+
+# Destructive warning mode will alert you before executing a sql statement
+# that may cause harm to the database such as "drop table", "drop database"
+# or "shutdown".
+destructive_warning = True
+
+# log_file location.
+log_file = ~/.mycli.log
+
+# Default log level. Possible values: "CRITICAL", "ERROR", "WARNING", "INFO"
+# and "DEBUG".
+log_level = INFO
+
+# Log every query and its results to a file. Enable this by uncommenting the
+# line below.
+# audit_log = ~/.mycli-audit.log
+
+# Timing of sql statments and table rendering.
+timing = True
+
+# Table format. Possible values: ascii, double, github,
+# psql, plain, simple, grid, fancy_grid, pipe, orgtbl, rst, mediawiki, html,
+# latex, latex_booktabs, textile, moinmoin, jira, vertical, tsv, csv.
+# Recommended: ascii
+table_format = ascii
+
+# 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: 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 = vi
+
+# Enabling this option will show the suggestions in a wider menu. Thus more items are suggested.
+wider_completion_menu = False
+
+# MySQL prompt
+# \t - Product type (Percona, MySQL, Mariadb)
+# \u - Username
+# \h - Hostname of the server
+# \d - Database name
+# \n - Newline
+prompt = '\t \u@\h:\d> '
+
+# Skip intro info on startup and outro info on exit
+less_chatty = False
+
+# Use alias from --login-path instead of host name in prompt
+login_path_as_host = False
+
+# Cause result sets to be displayed vertically if they are too wide for the current window,
+# and using normal tabular format otherwise. (This applies to statements terminated by ; or \G.)
+auto_vertical_output = False
+
+# keyword casing preference. Possible values "lower", "upper", "auto"
+keyword_casing = auto
+
+# Enable the pager on startup.
+enable_pager = True
+
+# Favorite queries.
+[favorite_queries]
+
+# Use the -d option to reference a DSN.
+[alias_dsn]
+# example_dsn = mysql://[user[:password]@][host][:port][/dbname]
+
+[client]
+# Configure the pager
+pager = 'pspg -s 0'
+multi_line = True