From 188c1a3aa0ffa244f4a87a76d00cd1784b52057b Mon Sep 17 00:00:00 2001 From: shi yuhang <52435083+shiyuhang0@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:10:58 +0800 Subject: [PATCH] expose config (#35) --- package.json | 2 +- src/index.ts | 4 ++++ src/version.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 7d158ea..e61a1ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@tidbcloud/serverless", - "version": "0.0.8", + "version": "0.0.9", "description": "TiDB Cloud Serverless Driver", "main": "./dist/index.cjs", "module": "./dist/index.js", diff --git a/src/index.ts b/src/index.ts index 103305d..363dedd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -92,6 +92,10 @@ export class Connection { } } + getConfig(): Config { + return this.config + } + async begin(txOptions: TxOptions = {}): Promise { const conn = new Connection(this.config) const tx = new Tx(conn) diff --git a/src/version.ts b/src/version.ts index 848d707..ef2fc9b 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const Version = '0.0.8' +export const Version = '0.0.9'