Skip to content

Commit

Permalink
chore: update SQLa deps
Browse files Browse the repository at this point in the history
  • Loading branch information
shah committed Jan 7, 2024
1 parent 25d6dcf commit 99718aa
Show file tree
Hide file tree
Showing 13 changed files with 474 additions and 365 deletions.
77 changes: 76 additions & 1 deletion deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 9 additions & 7 deletions src/ahc-hrsn-elt/screening/csv.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
import { fs, path, SQLa_orch_duckdb as ddbo } from "./deps.ts";
import { fs, path, SQLa_orch as o, SQLa_orch_duckdb as ddbo } from "./deps.ts";
import * as sg from "./governance.ts";

export class ScreeningCsvFileIngestSource<TableName extends string>
implements ddbo.CsvFileIngestSource<TableName> {
implements o.CsvFileIngestSource<TableName, ddbo.DuckDbOrchEmitContext> {
readonly nature = "CSV";
constructor(
readonly uri: string,
readonly tableName: TableName,
readonly govn: ddbo.OrchGovernance,
readonly govn: ddbo.DuckDbOrchGovernance,
) {
}

workflow(
sessionID: string,
sessionEntryID: string,
): ReturnType<ddbo.CsvFileIngestSource<TableName>["workflow"]> {
): ReturnType<
o.CsvFileIngestSource<TableName, ddbo.DuckDbOrchEmitContext>["workflow"]
> {
const sar = new sg.ScreeningAssuranceRules(
this.tableName,
sessionID,
Expand All @@ -31,7 +33,7 @@ export class ScreeningCsvFileIngestSource<TableName extends string>
}

async ingestSQL(
issac: ddbo.IngestSourceStructAssuranceContext,
issac: o.IngestSourceStructAssuranceContext<ddbo.DuckDbOrchEmitContext>,
sar: sg.ScreeningAssuranceRules<TableName>,
) {
const { tableName, uri } = this;
Expand Down Expand Up @@ -99,8 +101,8 @@ export class ScreeningCsvFileIngestSource<TableName extends string>
}

export function ingestCsvFilesSourcesSupplier(
govn: ddbo.OrchGovernance,
): ddbo.IngestFsPatternSourcesSupplier<ScreeningCsvFileIngestSource<string>> {
govn: ddbo.DuckDbOrchGovernance,
): o.IngestFsPatternSourcesSupplier<ScreeningCsvFileIngestSource<string>> {
return {
pattern: path.globToRegExp("**/*.csv", {
extended: true,
Expand Down
17 changes: 9 additions & 8 deletions src/ahc-hrsn-elt/screening/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ export * as cliffy from "https://deno.land/x/[email protected]/command/mod.ts";
export * as dax from "https://deno.land/x/[email protected]/mod.ts";
export * as safeText from "npm:string-ts";

// local: ../../../../../netspective-labs/sql-aide
// remote: https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1
// local: $./../../../../netspective-labs/sql-aide
// remote: https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2

export * as array from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1/lib/universal/array.ts";
export * as chainNB from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1/lib/notebook/chain-of-responsibility.ts";
export * as ws from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1/lib/universal/whitespace.ts";
export * as array from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/lib/universal/array.ts";
export * as chainNB from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/lib/notebook/chain-of-responsibility.ts";
export * as ws from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/lib/universal/whitespace.ts";

export * as SQLa from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1/render/mod.ts";
export * as SQLa_orch_duckdb from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1/pattern/orchestration/duckdb/mod.ts";
export * as SQLa_sqlpage from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.1/pattern/sqlpage/mod.ts";
export * as SQLa from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/render/mod.ts";
export * as SQLa_orch from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/pattern/orchestration/mod.ts";
export * as SQLa_orch_duckdb from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/pattern/orchestration/duckdb/mod.ts";
export * as SQLa_sqlpage from "https://raw.githubusercontent.com/netspective-labs/sql-aide/v0.12.2/pattern/sqlpage/mod.ts";
Loading

0 comments on commit 99718aa

Please sign in to comment.