Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
31e45f99
Commit
31e45f99
authored
2 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
MyCLI config template.
parent
9eba26a3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.myclirc
+0
-1
0 additions, 1 deletion
.myclirc
.myclirc.j2
+140
-0
140 additions, 0 deletions
.myclirc.j2
with
140 additions
and
1 deletion
.myclirc
deleted
120000 → 0
+
0
−
1
View file @
9eba26a3
Documents/.mycli/.myclirc
\ No newline at end of file
This diff is collapsed.
Click to expand it.
.myclirc.j2
0 → 100644
+
140
−
0
View file @
31e45f99
# vi: ft=dosini
[main]
# Enables context sensitive auto-completion. If this is disabled the 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 = False
# 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". "NONE" disables logging.
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 coloring style. Possible values (many support the "-dark" suffix):
# manni, igor, xcode, vim, autumn, vs, rrt, native, perldoc, borland, tango, emacs,
# friendly, monokai, paraiso, colorful, murphy, bw, pastie, paraiso, trac, default,
# fruity.
# Screenshots at http://mycli.net/syntax
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 = emacs
# Enabling this option will show the suggestions in a wider menu. Thus more items are suggested.
wider_completion_menu = False
# MySQL prompt
# \D - The full current date
# \d - Database name
# \h - Hostname of the server
# \m - Minutes of the current time
# \n - Newline
# \P - AM/PM
# \p - Port
# \R - The current time, in 24-hour military time (0–23)
# \r - The current time, standard 12-hour time (1–12)
# \s - Seconds of the current time
# \t - Product type (Percona, MySQL, MariaDB)
# \u - Username
prompt = '\t \u@\h:\d> '
prompt_continuation = '-> '
# 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
# disabled pager on startup
enable_pager = True
# 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'
# style classes for colored table output
output.header = "#00ff5f bold"
output.odd-row = ""
output.even-row = ""
# Favorite queries.
[favorite_queries]
# Use the -d option to reference a DSN.
[alias_dsn]
# example_dsn = mysql://[user[:password]@][host][:port][/dbname]
# pragma: allowlist nextline secret
sl-dataops = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Dataops Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Dataops Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Dataops Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Dataops Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-dev = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Dev Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Dev Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Dev Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Dev Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-dev-blue = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Dev Blue Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Dev Blue Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Dev Blue Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Dev Blue Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-dev-green = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Dev Green Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Dev Green Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Dev Green Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Dev Green Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-dev-purple = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Dev Purple Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Dev Purple Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Dev Purple Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Dev Purple Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-dev-red = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Dev Red Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Dev Red Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Dev Red Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Dev Red Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-prod = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Production Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Production Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Production Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Production Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-qa = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/QA Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/QA Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/QA Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/QA Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-stable = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Stable Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Stable Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Stable Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Stable Database"])["stdout"] }}
# pragma: allowlist nextline secret
sl-staging = mysql://{{ run(["ph", "show", "--field", "username", "SchooLinks/Staging Database"])["stdout"] }}:{{ run(["ph", "show", "--field", "Password", "SchooLinks/Staging Database"])["stdout"] }}@{{ run(["ph", "show", "--field", "URL", "SchooLinks/Staging Database"])["stdout"] }}/{{ run(["ph", "show", "--field", "Database", "SchooLinks/Staging Database"])["stdout"] }}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment