New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

trino-client

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trino-client

Trino client library

  • 0.1.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
decreased by-5.57%
Maintainers
1
Weekly downloads
 
Created
Source

trino-js-client

A Trino client for Node.js.

@latest

Features

  • Connections over HTTP or HTTPS
  • Supports HTTP Basic Authentication
  • Per-query user information for access control

Requirements

  • Node 12 or newer.
  • Trino 0.16x or newer.

Install

npm install trino-client or yarn add trino-client

Usage

const trino = new Trino({
  server: 'http://localhost:8080'
  catalog: 'tpcds',
  schema: 'sf100000',
  auth: new BasicAuth('test'),
});

const queryIter = await trino.query('select * from customer limit 100');
const data = await queryIter.fold<QueryData[]>([], (row, acc) => [
  ...acc,
  ...(row.data ?? []),
]);

More usage examples can be found in the integration tests.

Filipe Regadas (regadas) 2022

Keywords

FAQs

Package last updated on 08 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc