Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFE] SQL (extension) function documentation in UI #65

Open
saaj opened this issue Jul 3, 2021 · 1 comment
Open

[RFE] SQL (extension) function documentation in UI #65

saaj opened this issue Jul 3, 2021 · 1 comment

Comments

@saaj
Copy link
Contributor

saaj commented Jul 3, 2021

(from #62)

As a user of sqliteviz,
In order to understand what functions are available for the query,
I want to be able filter available in the query editor and/or dedicated panel.

SQLite has PRAGMA function_list. This list can be fed to CodeMirror autocomplete, or, say, right pannel with a filter akin to Google Sheets function list.

image

Question

  1. Has CodeMirror a mechanism to feed available SQL functions? An extension needed? Try out monaco-editor as alternative?
  2. Is it possible to show documentation snippet in the CodeMirror autocomplete?
  3. How to tell which functions are from which extensions?
@twoxfh
Copy link
Contributor

twoxfh commented Jul 9, 2021

Saaj,

The code currently feeding the drop down is in hint.js

It looks like code mirror has the ability to distinguish the displayText vs the hint. There may be an addon that makes it easier.

I have not seen a standard way of documenting system objects in sqlite, This may need to be another static json based on the default extensions supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants