Code Monkey home page Code Monkey logo

trino-js-client's People

Contributors

dependabot[bot] avatar elferherrera avatar regadas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

trino-js-client's Issues

Primary Introductory Example wouldn't compile or run

In the introductory documentation the following snippet is offered...

const iter: Iterator<QueryResult> = await trino.query(
'select * from customer limit 100'
);

A followup snippet explains how you consume the result...

for await (const queryResult of iter) {
console.log(queryResult.data);
}

I don't know how the example offered would ever compile and run, since the for await...of signature requires an AsyncIterator. See the following typescript playground.

image

Extra headers during initialization

Possibility to provide extra / additional request headers will help to solve some issues with connection to Trino inside cluster.
When some service setup inside one k8 cluster with Trino, you have a possibility to call it via http, but you have to pass X-Forwarded-Proto: "https" as axios request header.
So, would be great to extend ConnectionOptions interface (f.e. with extraHeaders property) and pass them to query method for headers.

Is there a way to pass some properties to the Driver?

From DBeaver I use the JDBC driver for Trino and I needed to manually add three driver parameters:

  • SSL
  • SSLKeyStorePassword
  • SSLKeyStorePath

Is it possible to pass those parameters and their values to this tool?

Converting the Output to JSON

Hello! I just started using this package and has been the easiest to connect and faster responses among the others I have tried. I have a requirement to return the Trino results in JSON format. Is there a way to add the columns to each of the results in data?

Go from this
[ [ "data1" ] ]

To this
[ { 'column1': "data1" } ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.