@tidbcloud/serverless
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -70,2 +70,3 @@ interface ServerlessError { | ||
constructor(config: Config); | ||
getConfig(): Config; | ||
begin(txOptions?: TxOptions): Promise<Tx>; | ||
@@ -72,0 +73,0 @@ execute(query: string, args?: ExecuteArgs, options?: ExecuteOptions, txOptions?: TxOptions): Promise<FullResult | Row[]>; |
@@ -73,11 +73,4 @@ // src/format.ts | ||
// src/decode.ts | ||
var decoder = new TextDecoder("utf-8"); | ||
function decode(text) { | ||
return text ? decoder.decode(Uint8Array.from(bytes(text))) : ""; | ||
} | ||
function bytes(text) { | ||
return text.split("").map((c) => c.charCodeAt(0)); | ||
} | ||
function cast(field, value) { | ||
if (isNull(value)) { | ||
if (value === null) { | ||
return null; | ||
@@ -122,10 +115,5 @@ } | ||
default: | ||
return decode(value); | ||
return value; | ||
} | ||
} | ||
function isNull(value) { | ||
if (value === null) { | ||
return true; | ||
} | ||
} | ||
@@ -142,3 +130,3 @@ // src/error.ts | ||
// src/version.ts | ||
var Version = "0.0.8"; | ||
var Version = "0.0.9"; | ||
@@ -233,2 +221,5 @@ // src/serverless.ts | ||
} | ||
getConfig() { | ||
return this.config; | ||
} | ||
async begin(txOptions = {}) { | ||
@@ -235,0 +226,0 @@ const conn = new _Connection(this.config); |
{ | ||
"name": "@tidbcloud/serverless", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "TiDB Cloud Serverless Driver", | ||
@@ -61,3 +61,3 @@ "main": "./dist/index.cjs", | ||
"typescript": "^4.9.5", | ||
"undici": "^5.8.0", | ||
"undici": "^5.26.2", | ||
"tsup": "^7.1.0" | ||
@@ -64,0 +64,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35498
646