Skip to content

zemeolotu/node-pg2arrow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-pg2arrow

Simple library to query postgres and return result in an Apache Arrow format.

Library uses the pg-native.

install

You'll need to install libpq to use this library. See pg-native docs for prerequisite

$ npm i pg2arrow

use

If no connection details are supplied, libpq will use environment variables as per docs

    const pg2arrow = require('pg2arrow');
    const arrow = await pg2arrow('SELECT $1::text as name', ['Zeme']);

    // or 

    const arrow = await pg2arrow({ connectionString, query: 'SELECT $1::text as name', params: ['Zeme'] });

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published