Skip to content

Commit

Permalink
response data type extracted
Browse files Browse the repository at this point in the history
  • Loading branch information
brugos committed Feb 24, 2021
1 parent 9965618 commit c84e0ef
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snowflake-multisql",
"version": "1.3.0",
"version": "1.3.1",
"description": "Multi SQL Statement, Promise-based, TypeScript wrapper for Snowflake SDK",
"repository": "github:brugos/snowflake-multisql",
"bugs": "https://github.com/brugos/snowflake-multisql/issues",
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export {
SnowflakeMultiSql as Snowflake,
data,
ITag,
IMultiSqlResult,
IPreview,
Expand Down
13 changes: 8 additions & 5 deletions src/snowflake-multisql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,24 @@ import { Snowflake, ConnectionOptions } from "snowflake-promise";
import { Mixin } from "ts-mixer";
import { EventEmitter } from "events";

export interface ITag {
tag: string;
value: any;
}
export interface IPreview {
chunkText: string;
chunkOrder: number;
chunksTotal: number;
binds: any[];
}

export type data = Record<string, any>;
export interface IMultiSqlResult extends IPreview {
duration?: number;
totalDuration?: number;
data?: Record<string, any>[]; //any[];
data?: data[];
}

export type ITag = {
tag: string;
value: any;
};
export interface IExecuteAll {
sqlText: string;
tags?: ITag[];
Expand Down

0 comments on commit c84e0ef

Please sign in to comment.