MCPcopy Create free account
hub / github.com/explorerhq/sql-explorer / updateSchema

Function updateSchema

explorer/src/js/explorer.js:17–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16
17function updateSchema() {
18 SchemaSvc.get().then(schema => {
19 window.editor.dispatch({
20 effects: StateEffect.appendConfig.of(
21 StandardSQL.language.data.of({
22 autocomplete: schemaCompletionSource({schema: schema})
23 })
24 )
25 });
26 });
27
28 $("#schema_frame").attr("src", `${window.baseUrlPath}schema/${getConnElement().value}`);
29}
30
31
32function editorFromTextArea(textarea) {

Callers 1

bindMethod · 0.70

Calls 3

getConnElementFunction · 0.90
getMethod · 0.45
dispatchMethod · 0.45

Tested by

no test coverage detected