// To install Kinetica, first run this from the CLI: npm i @kinetica/gpudb
varGPUdb=require("@kinetica/gpudb");varkdb=newGPUdb(["http://<db.host>:9191"],{username:"<username>",password:"<password>"});
# Example call invoking the /show/system/properties endpoint# and requesting the database's version numbercurl --user <username>:<password> --location --request POST \
'http://<db.host>:9191/show/system/properties'\
--data '{"options": {"properties": "version.gpudb_core_version"}}'\
--header 'cache-control: no-cache'\
--header 'content-type: application/json'
importcom.gpudb.GPUdb;GPUdb.Optionsoptions=newGPUdb.Options().setUsername("<username>").setPassword("<password>");// By default, the Java system CA trust store will be used;// to specify a different trust store, use these options:options.setTrustStoreFilePath("</path/to/truststore.jks>");options.setTrustStorePassword("<trustStorePassword>");GPUdbkdb=newGPUdb("https://<db.host>:8082/gpudb-0",options);
// To install Kinetica, first run this from the CLI: npm i @kinetica/gpudb
varGPUdb=require("@kinetica/gpudb");varkdb=newGPUdb(["https://<db.host>:8082/gpudb-0"],{username:"<username>",password:"<password>"});
# Example call invoking the /show/system/properties endpoint# and requesting the database's version numbercurl --user <username>:<password> --location --request POST \
'https://<db.host>:8082/gpudb-0/show/system/properties'\
--data '{"options": {"properties": "version.gpudb_core_version"}}'\
--header 'cache-control: no-cache'\
--header 'content-type: application/json'
HTTPS Connections without Certificate Validation
Note
Using these setups, no certificate validation of any kind will be
performed; not recommended for production deployments.
# Example call invoking the /show/system/properties endpoint# and requesting the database's version numbercurl --user <username>:<password> --location --request POST \
'https://<db.host>:8082/gpudb-0/show/system/properties'\
--data '{"options": {"properties": "version.gpudb_core_version"}}'\
--insecure \
--header 'cache-control: no-cache'\
--header 'content-type: application/json'
Compatibility Matrix
The following chart shows the version compatibilities between the various APIs
and a target database server. While only the major & minor version numbers
(6.2, 7.0, 7.1) must match to achieve interoperability, the complete feature
set for a given database version can only be utilized via the corresponding API
version, depicted below.
Database
C++
C#
Java
Javascript
Node.js
Python
6.2
6.2.*
6.2.*
6.2.*
6.2.*
6.2.*
6.2.*
7.0.X
7.0.X
7.0.X
7.0.X
7.0.X
7.0.X
7.0.X
7.1.X
7.1.X
7.1.X
7.1.X
7.1.X
7.1.X
7.1.X
Dynamic Schemas
When working with APIs, it is helpful to have an understanding of how data is
returned by the database. For a detailed breakdown in Java & Python, see
Dynamic Schemas.