How to use
Install dependencies and compile library
npm ci
npm run build:lib
Set environment variables
Variables which should not be set for a specific installation are explicitly set to an empty value,
so that startup script correctly detects which installation you are aiming at.
Common variables
export YDB_SDK_LOGLEVEL=debug
export IAM_ENDPOINT=
Access to internal YDB cluster
export SA_ID=
export YDB_TOKEN=
Access to Yandex.Cloud YDB cluster from local machine
Serverless DB
export YDB_TOKEN=
Dedicated DB
export YDB_TOKEN=
export YDB_SSL_ROOT_CERTIFICATES_FILE=
Access to Yandex.Cloud YDB cluster from virtual machine
export SA_PRIVATE_KEY_FILE=
export SA_ID=
export SA_ACCESS_KEY_ID=
Run basic-example script
cd examples
npm ci
npm run build
npm run basic-v1 -- --endpoint your-cloud-endpoint-hostname --db your-cloud-db-name