Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
update: modify ux drhSQL
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetAnithaVarghese committed Sep 2, 2024
1 parent 03f89d7 commit e4c5a57
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions service/diabetes-research-hub/ux.sql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -707,21 +707,8 @@ ${pagination.renderSimpleMarkdown()}
}
}

// // this will be used by any callers who want to serve it as a CLI with SDTOUT
// if (import.meta.main) {
// const SQL = await spn.TypicalSqlPageNotebook.SQL(
// new sh.ShellSqlPages(),
// new c.ConsoleSqlPages(),
// new ur.UniformResourceSqlPages(),
// new orch.OrchestrationSqlPages(),
// new DRHSqlPages(),
// );
// console.log(SQL.join("\n"));
// }

// this will be used by any callers who want to serve it as a CLI with SDTOUT
if (import.meta.main) {
const SQL = await spn.TypicalSqlPageNotebook.SQL(
export async function drhSQL() {
return await spn.TypicalSqlPageNotebook.SQL(
new class extends spn.TypicalSqlPageNotebook {
async statelessDRHSQL() {
// read the file from either local or remote (depending on location of this file)
Expand All @@ -743,5 +730,9 @@ if (import.meta.main) {
new orch.OrchestrationSqlPages(),
new DRHSqlPages(),
);
console.log(SQL.join("\n"));
}

// this will be used by any callers who want to serve it as a CLI with SDTOUT
if (import.meta.main) {
console.log((await drhSQL()).join("\n"));
}

1 comment on commit e4c5a57

@deno-deploy
Copy link

@deno-deploy deno-deploy bot commented on e4c5a57 Sep 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

Your deployment uses decorators. The default for 'experimentalDecorators' will be changing to 'false'. In the meantime, please explicitly set the 'experimentalDecorators' compiler option. For more information, see https://deno.com/deploy/changelog#es-decorators-are-enabled-on-deno-deploy-replacing-experimental-ts-decorators

Please sign in to comment.