Skip to content

Commit

Permalink
expose config (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Dec 14, 2023
1 parent f43def2 commit 188c1a3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export class Connection {
}
}

getConfig(): Config {
return this.config
}

async begin(txOptions: TxOptions = {}): Promise<Tx> {
const conn = new Connection(this.config)
const tx = new Tx(conn)
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const Version = '0.0.8'
export const Version = '0.0.9'

0 comments on commit 188c1a3

Please sign in to comment.