【文件属性】:
文件名称:presto-ts:使用Typescript库进行Presto DB操作
文件大小:62KB
文件格式:ZIP
更新时间:2021-04-18 01:02:12
npm typescript prestodb TypeScript
Presto TS!
描述
presto-ts是npm Typescript库,使项目可以与SQL查询引擎PrestoDB进行交互
npm install --save presto-ts
例子
跑步:
import { Presto, PrestoQueryParams, PrestoResponse } from "presto-ts";
const prestoStatusUpdate = (prestoNotification: PrestoResponse): PrestoResponse => {
console.log("NEW PRESTO QUERY STATUS")
console.log(prestoNotification)
return prestoNotification;
}
const errorPresto = (error: Er
【文件预览】:
presto-ts-main
----.DS_Store(6KB)
----.github()
--------workflows()
----index.ts(21B)
----src()
--------index.ts(240B)
--------Presto()
----.vscode()
--------launch.json(577B)
----jestconfig.json(295B)
----tsconfig.json(247B)
----LICENSE(1KB)
----.prettierrc(72B)
----tslint.json(68B)
----README.md(2KB)
----tests()
--------presto.test.ts(3KB)
----.gitignore(43B)
----package-lock.json(229KB)
----package.json(1KB)