This API allows you to execute SQL statements against a SingleStore database. It supports all statements that can be run in a direct database connection, and uses conventional data type conversion.
npm install @singlestore/http-clientThis API allows you to execute SQL statements against a SingleStore database. It supports all statements that can be run in a direct database connection, and uses conventional data type conversion.
For more information, please visit https://docs.singlestore.com/managed-service/en/reference/http-api.html.
This client is designed to be deployed using npm. You can use the npm command to automatically install it into your project from the hosted site, as follows:
``shell``
npm install @singlestore/http-client
This package contains an example.js file that explains how to use the SingleStore HTTP Client for JavaScript. The instructions at the top explain how to run it. Included are a basic example and several extended examples. The basic example will show you how to get started quickly with a few lines of code. The extended examples build on the basic one and illustrate other API calls and usage.
All URIs are relative to http://localhost
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
SingleStoreClient.HttpApi | exec | POST /api/v2/exec | Exec
SingleStoreClient.HttpApi | ping | GET /ping | Ping
SingleStoreClient.HttpApi | rows | POST /api/v2/query/rows | Query
SingleStoreClient.HttpApi | spec | GET /api/v2/spec | Spec
SingleStoreClient.HttpApi | tuples | POST /api/v2/query/tuples | Query
- SingleStoreClient.Column
- SingleStoreClient.ExecInput
- SingleStoreClient.ExecOutput
- SingleStoreClient.QueryInput
- SingleStoreClient.QueryInputArg
- SingleStoreClient.QueryOutput
- SingleStoreClient.QueryOutputError
- SingleStoreClient.ResultSet
- SingleStoreClient.RowValue
- SingleStoreClient.StreamOutput
- SingleStoreClient.StreamResult
- Type: HTTP basic authentication
This JavaScript package was automatically generated by the OpenAPI Generator project, with some custom templating:
- API version: 2.0.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen