Non-blocking Vertica client for Node.js. Pure JavaScript and optional native libpq bindings.
vertica-nodejs is still pre-release and actively being improved. As of 5/5/22 this is not intended for use in production environments.
This repo is a monorepo which contains the core vertica-nodejs module as well as a handful of related modules.
See DATATYPES.md to view the mappings from type IDs to Vertica data types.
- Pure JavaScript client and native libpq bindings share the same API
- Connection pooling
- Extensible JS ↔ Vertica data-type coercion
vertica-nodejs is free software. If you encounter a bug with the library please open an issue on the GitHub repo. If you have questions unanswered by the documentation please open an issue pointing out how the documentation was unclear and we will address it as needed.
When you open an issue please provide:
- version of Node
- version of Vertica
- smallest possible snippet of code to reproduce the problem
See the examples directory for sample applications showing how to use the vertica-nodejs client driver.
- Clone the repo
- From your workspace root run
yarn
and thenyarn lerna bootstrap
- Ensure you have a Vertica instance running with
- Ensure you have the proper environment variables configured for connecting to the instance (
V_HOST
,V_PORT
,V_USER
,V_PASSWORD
,V_DATABASE
,V_BACKUP_SERVER_NODE
) - Run
yarn test
to run all the tests, or runyarn test
from within an individual package to only run that package's tests
If using VS Code, you can install the Remote - Containers
extension and it will use the configuration under the .devcontainer
folder to automatically create dev containers, including Vertica. See here for more information on developing in containers using VS Code. This process will complete steps 2 to 4 above.
The causes and solutions to common errors can be found among the Frequently Asked Questions (FAQ)
Apache 2.0 License, please see LICENSE for details.