Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
import type { Pool, Query, QueryOptions } from 'mysql';
|
|
export declare function getConfig(config: any): {
|
|
host: any;
|
|
port: any;
|
|
database: any;
|
|
user: any;
|
|
};
|
|
export declare function getJDBCString(host: string | undefined, port: number | undefined, database: string | undefined): string;
|
|
/**
|
|
* @returns the database query being executed.
|
|
*/
|
|
export declare function getDbQueryText(query: string | Query | QueryOptions): string;
|
|
export declare function getDbValues(query: string | Query | QueryOptions, values?: any[]): string;
|
|
/**
|
|
* The span name SHOULD be set to a low cardinality value
|
|
* representing the statement executed on the database.
|
|
*
|
|
* TODO: revisit span name based on https://github.com/open-telemetry/semantic-conventions/blob/v1.33.0/docs/database/database-spans.md#name
|
|
*
|
|
* @returns SQL statement without variable arguments or SQL verb
|
|
*/
|
|
export declare function getSpanName(query: string | Query | QueryOptions): string;
|
|
export declare function arrayStringifyHelper(arr: Array<unknown> | undefined): string;
|
|
export declare function getPoolNameOld(pool: Pool): string;
|
|
//# sourceMappingURL=utils.d.ts.map |