码迷,mamicode.com
首页 > Web开发 > 详细

trino nodejs 驱动

时间:2021-04-13 12:41:50      阅读:0      评论:0      收藏:0      [点我收藏+]

标签:max   stat   fun   line   -o   ati   tag   dem   variable   

因为trino 与presto还是有差异的,所以fork 原有presto clinet进行了调整,同时发布了一个npm包

参考修改的代码

lib/presto-client/headers.js

var Headers = exports.Headers = function(){
};
 
Headers.USER = ‘X-Trino-User‘;
 
Headers.SOURCE = ‘X-Trino-Source‘;
Headers.CATALOG = ‘X-Trino-Catalog‘;
Headers.SCHEMA = ‘X-Trino-Schema‘;
 
Headers.TIME_ZONE = ‘X-Trino-Time-Zone‘;
 
Headers.CURRENT_STATE = ‘X-Trino-Current-State‘;
Headers.MAX_WAIT = ‘X-Trino-Max-Wait‘;
Headers.MAX_SIZE = ‘X-Trino-Max-Size‘;
Headers.PAGE_SEQUENCE_ID = ‘X-Trino-Page-Sequence-Id‘;
 
Headers.SESSION = ‘X-Trino-Session‘;
 
Headers.USER_AGENT = ‘User-Agent‘;
 
Headers.AUTHORIZATION = ‘Authorization‘;

参考资料

https://trino.io/resources.html
https://www.npmjs.com/package/@dalongrong/trino-client
https://github.com/rongfengliang/trino-client
https://github.com/tagomoris/presto-client-node

trino nodejs 驱动

标签:max   stat   fun   line   -o   ati   tag   dem   variable   

原文地址:https://www.cnblogs.com/rongfengliang/p/14651267.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!