@singlestore/client
Advanced tools
Comparing version 0.0.41 to 0.0.42
@@ -7,3 +7,3 @@ import * as mysql2_promise from 'mysql2/promise'; | ||
interface ConnectionConfig extends Partial<Omit<PoolOptions, "name" | "database">> { | ||
interface ConnectionConfig extends Partial<Omit<PoolOptions, "name">> { | ||
} | ||
@@ -10,0 +10,0 @@ type ConnectionClient = Pool; |
{ | ||
"name": "@singlestore/client", | ||
"version": "0.0.41", | ||
"version": "0.0.42", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -44,2 +44,3 @@ # SingleStore Client | ||
- [Using Workspace Group](#using-workspace-group) | ||
- [Free Tier](#free-tier) | ||
- [Get Workspace](#get-workspace) | ||
@@ -445,2 +446,17 @@ - [All Workspaces](#all-workspaces) | ||
##### Free Tier | ||
To connect to a free tier workspace, download the SSL certificate from this [link](https://portal.singlestore.com/static/ca/singlestore_bundle.pem), set the `port` and `database`, and place the SSL certificate in the root directory of your project. | ||
```ts | ||
const connection = client.connect({ | ||
host: "<WORKSPACE_HOST>", | ||
user: "<WORKSPACE_USER>", | ||
password: "<WORKSPACE_PASSWORD>", | ||
port: <WORKSPACE_PORT> | ||
database: "<DATABASE_NAME>", | ||
ssl: { ca: readFileSync(resolve(process.cwd(), "singlestore_bundle.pem")) }, | ||
}); | ||
``` | ||
--- | ||
@@ -447,0 +463,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
541091
1644