https://github.com/rschwarz/sql-clickhouse
Support for Clickhouse databases in sql-mode for Emacs.
https://github.com/rschwarz/sql-clickhouse
clickhouse emacs sql
Last synced: about 1 year ago
JSON representation
Support for Clickhouse databases in sql-mode for Emacs.
- Host: GitHub
- URL: https://github.com/rschwarz/sql-clickhouse
- Owner: rschwarz
- License: mit
- Created: 2018-02-19T19:00:03.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T22:04:02.000Z (almost 3 years ago)
- Last Synced: 2025-02-16T11:56:32.463Z (about 1 year ago)
- Topics: clickhouse, emacs, sql
- Language: Emacs Lisp
- Size: 14.6 KB
- Stars: 4
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
[[https://melpa.org/#/sql-clickhouse][file:https://melpa.org/packages/sql-clickhouse-badge.svg]]
We add [[https://clickhouse.yandex/][ClickHouse]] as a new product type to the builtin [[http://repo.or.cz/w/emacs.git/blob/HEAD:/lisp/progmodes/sql.el][sql-mode]] in Emacs. That
way, we get syntax highlighting and can communicate with the DB using the CLI
=clickhouse-client=.
Note that the client assumes being run in a fully-functional terminal. While
running a query, it will print updated statistics every 100ms. Inside Emacs,
with the =comint= interface, these messages accumulate rather than update in
place, which is kind of messy (including some coloring). I failed to disable
this behavior so far, but there is a parameter to control the frequency of these
updates in microseconds. I use the following query to increase it to 10 seconds:
#+BEGIN_SRC
-- 10 seconds in microseconds
SET interactive_delay = 10000000;
#+END_SRC