You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -56,32 +50,3 @@ In hue_dep `package.json` there is a dependency on Hue:
56
50
Now let's import the Hive parser:
57
51
58
52
import sqlAutocompleteParser from 'hue/desktop/core/src/desktop/js/parse/sql/hive/hiveAutocompleteParser';
59
-
60
-
61
-
## Using
62
-
63
-
Here is an example on how to use the er-diagram component once installed:
64
-
65
-
### Import
66
-
67
-
er-diagram can be imported into an html file using a simple script tag as follows.
68
-
69
-
<script type = "text/javascript" src="node_modules/gethue/lib/components/ErDiagram.js"></script>
70
-
71
-
If you are using a bundler like webpack. They can be imported using a normal import statement.
72
-
73
-
import 'gethue/lib/components/ErDiagram';
74
-
75
-
### Instantiate
76
-
77
-
Once imported they can be used like a native HTML tag.
78
-
79
-
<er-diagram id="erd-id"/>
80
-
81
-
Please refer these [demo apps](https://github.com/cloudera/hue/tree/master/tools/examples/components) for examples on how the components can be used. You must be able to directly pass attributes, and listen to custom and native events.
82
-
83
-
### Use as a Vue Component
84
-
85
-
Internally these components are created using Vue.js & TypeScript. So you can even use them as plain Vue component, and take advantage of Vue features. Vue version of the components are under `gethue/components`.
86
-
87
-
import ERDiagram from 'gethue/components/er-diagram/index.vue';
Copy file name to clipboardExpand all lines: docs/docs-site/content/developer/components/scratchpad/_index.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,16 @@
1
1
---
2
2
title: "SQL Scratchpad"
3
3
draft: false
4
+
weight: 1
4
5
---
5
6
6
7
The lightweight SQL Editor also called "SQL Scratchpad" comes as its own `<sql-scratchpad />` Web component.
7
8
8
9
The SQL Scratchpad component is in **beta** and rapidly evolving. Now is a great time to give it a try and [send feedback](https://github.com/cloudera/hue/issues)!
Above expects a running Hue or [Compose](https://github.com/gethue/compose) APIs on http://locahost:8005 as the middleware between your Data Warehouse and client.
38
+
Above expects a running Hue or [Compose](https://github.com/gethue/compose) APIs on [http://locahost:8005](http://locahost:8005) as the middleware between your Data Warehouse and client.
36
39
37
40
Note: if using Hue, it currently temporarily requires this ini settings:
0 commit comments