@omnisci/omniscidb-thrift-ts-bindings
v0.0.3
Published
OmnisciDB Thrift TypeScript bindings
Downloads
8
Readme
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
omniscidb
run 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.ts
that 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-nodejs
folder into this repo'slib/thrift
folder and commit those changes.
How to publish package to NPM
// TODO - write steps for package publishing