MCPcopy Create free account
hub / github.com/dzsquared/sqlops-firstresponderkit / spblitzscript

Function spblitzscript

src/getScripts.ts:9–18  ·  view source on GitHub ↗
(baseUrl: string, fileName: string, context?: sqlops.ObjectExplorerContext)

Source from the content-addressed store, hash-verified

7const baseUrl = "https://raw.githubusercontent.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/main/";
8
9async function spblitzscript(baseUrl: string, fileName: string, context?: sqlops.ObjectExplorerContext) {
10 if(context) { vscode.window.showInformationMessage("context before get: "+ context.connectionProfile.id)};
11 let options = {
12 uri: baseUrl + fileName,
13 };
14 console.log('Bringing in the first responder kit from the mothership.');
15 const scriptText = await request.get(options);
16 if(context) { vscode.window.showInformationMessage("context after get: "+ context.connectionProfile.id)};
17 new placeScript().placescript(fileName, scriptText, context);
18}
19
20//importing all first responder kit scripts
21export let getblitzall = async (context?: sqlops.ObjectExplorerContext) => {

Callers 6

getblitzallFunction · 0.85
getblitzFunction · 0.85
getblitzcacheFunction · 0.85
getblitzfirstFunction · 0.85
getblitzwhoFunction · 0.85
getblitzindexFunction · 0.85

Calls 1

placescriptMethod · 0.80

Tested by

no test coverage detected