0.0.3 • Published 4 years ago
@omnisci/omniscidb-thrift-ts-bindings v0.0.3
omniscidb-thrift-ts-bindings
OmnisciDB Thrift TypeScript bindings
How to update bindings
- Install docker
- Clone https://github.com/omnisci/omniscidb to your local
- From the root folder of omniscidbrun the following command:docker run -v $PWD:/data --user $(id -u):$(id -g) -it cspwizard/thrift:0.14.2 -r -gen js:ts,node,es6 -o /data /data/omnisci.thrift
- This should have generated a folder gen-nodejs
- There are 4 lines in OmniSci.d.tsthat will have generated invalid TypeScript optional arguments ordering. Search for the following and just make them optional arguments:- file_type?: TFileType, create_params: TCreateParams->- file_type?: TFileType, create_params?: TCreateParams
- first_n?: number, transport_method: TArrowTransport->- first_n?: number, transport_method?: TArrowTransport
 
- Copy the contents of the /gen-nodejsfolder into this repo'slib/thriftfolder and commit those changes.
How to publish package to NPM
// TODO - write steps for package publishing