Giter Site home page Giter Site logo

presto-js-client's Introduction

presto-client

This monorepo was generated with Nx.

Presto JS Client

For information on the Presto JS Client check its README file under presto-client.

Contributing

Check the CONTRIBUTING file for information on how to build, test and publish the client.

presto-js-client's People

Contributors

alonsovb avatar jorgeramirezamora avatar tdcmeehan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

presto-js-client's Issues

If a query fails, return the error back

Currently, when an error happens and the query doesn't run properly/doesn't return anything, we have no way of knowing what the issue was.
We should find a way to return back errors to the users of the client.

Reduce Bundle and Install Size of npm Package

The current npm package for @prestodb/presto-js-client includes unnecessary modules that increase the overall size of the package.

Details:

  • The inclusion of these extra modules could potentially slow down the installation process for users and consume extra storage.
  • Reducing the bundle size will make the package more efficient, especially for projects that are sensitive to package sizes.

Recommendation:

  • Investigate and identify the modules that are not essential for the package's functionality.
  • Update the build process to exclude these non-essential modules during the packaging phase.

Additional Resources: For a detailed breakdown of the package size, please refer to: pkg-size.dev/@prestodb%2Fpresto-js-client

Include catalog and schema fetching functions

The client should include a method for retrieving the database's catalog and schemas, which just executes a SHOW CATALOGS and SHOW SCHEMAS query underneath.
If possible, we should make use of the parameters from both of those statements.

Need Query Parser Support

Hi,

We have a use case where we want to know the tables/schemas dependencies of a Presto Query.
The package provides a way to query the presto db with an actual query which would actually execute the query, but instead I'm looking for query parser support. We have such support in java but not in typescript.

Include function to retrieve tables and columns

The client should include a method for retrieving all the tables (optionally given a catalog and/or schema).
It should also include the option of retrieving columns.

This is useful for metadata parsing, which build a kind of conceptual model of the database.

Delay behavior on query method

Details:
The current implementation of the query method on the client has an initial delay, as well as subsequent delays before getting each page.
This is not required since all pages are ready to be consumed upon receiving the first one.

Recommendation:
Remove the delay for getting the 2nd and subsequent pages of data.

License, repository and tags are missing

Current Behavior

@prestodb/presto-js-client NPM package does not have the next information:

  • License
  • Repository
  • Tags

Expected Behavior

@prestodb/presto-js-client NPM package should have the next information:

  • License
  • Repository
  • Tags

GitHub Repo

No response

Steps to Reproduce

  1. Go to the next url.
  2. Notice how the License, Repository and Tags are missing:

image

Additional Information

No response

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.