Update Fix
This commit is contained in:
34
node_modules/mysql2/typings/mysql/index.d.ts
generated
vendored
34
node_modules/mysql2/typings/mysql/index.d.ts
generated
vendored
@@ -1,6 +1,3 @@
|
||||
/**
|
||||
* sqlstring types are based on https://www.npmjs.com/package/@types/sqlstring, version 2.3.2
|
||||
*/
|
||||
import { Pool as BasePool, PoolOptions } from './lib/Pool.js';
|
||||
import {
|
||||
Connection as BaseConnection,
|
||||
@@ -23,6 +20,13 @@ import {
|
||||
PrepareStatementInfo,
|
||||
} from './lib/protocol/sequences/Prepare.js';
|
||||
import { Server } from './lib/Server.js';
|
||||
import {
|
||||
escape as SqlStringEscape,
|
||||
escapeId as SqlStringEscapeId,
|
||||
format as SqlStringFormat,
|
||||
raw as SqlStringRaw,
|
||||
} from 'sql-escaper';
|
||||
export type { Raw, SqlValue, Timezone } from 'sql-escaper';
|
||||
|
||||
export {
|
||||
ConnectionOptions,
|
||||
@@ -57,26 +61,10 @@ export function createPool(config: PoolOptions): BasePool;
|
||||
|
||||
export function createPoolCluster(config?: PoolClusterOptions): PoolCluster;
|
||||
|
||||
type TimeZone = 'local' | 'Z' | (string & NonNullable<unknown>);
|
||||
export function escape(
|
||||
value: any,
|
||||
stringifyObjects?: boolean,
|
||||
timeZone?: TimeZone
|
||||
): string;
|
||||
|
||||
export function escapeId(value: any, forbidQualified?: boolean): string;
|
||||
|
||||
export function format(sql: string): string;
|
||||
export function format(
|
||||
sql: string,
|
||||
values: any | any[],
|
||||
stringifyObjects?: boolean,
|
||||
timeZone?: TimeZone
|
||||
): string;
|
||||
|
||||
export function raw(sql: string): {
|
||||
toSqlString: () => string;
|
||||
};
|
||||
export const escape: typeof SqlStringEscape;
|
||||
export const escapeId: typeof SqlStringEscapeId;
|
||||
export const format: typeof SqlStringFormat;
|
||||
export const raw: typeof SqlStringRaw;
|
||||
|
||||
export interface ConnectionConfig extends ConnectionOptions {
|
||||
mergeFlags(defaultFlags: string[], userFlags: string[] | string): number;
|
||||
|
||||
Reference in New Issue
Block a user