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

Function selectConnection

explorer/src/js/explorer.js:47–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47function selectConnection() {
48 var urlParams = new URLSearchParams(window.location.search);
49 var connectionId = urlParams.get('connection');
50
51 if (connectionId) {
52 var connectionSelect = document.getElementById('id_database_connection');
53 if (connectionSelect) {
54 connectionSelect.value = connectionId;
55 }
56 }
57}
58
59export class ExplorerEditor {
60 constructor(queryId) {

Callers 1

constructorMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected