Add comprehensive tests for role middleware and fix package dependencies
Some checks are pending
Docker Test / test (push) Waiting to run
Some checks are pending
Docker Test / test (push) Waiting to run
This commit is contained in:
parent
64aa924270
commit
bfd432d094
1884 changed files with 384668 additions and 84 deletions
89
node_modules/mysql2/typings/mysql/index.d.ts
generated
vendored
Normal file
89
node_modules/mysql2/typings/mysql/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,89 @@
|
|||
import { Pool as BasePool, PoolOptions } from './lib/Pool.js';
|
||||
import {
|
||||
Connection as BaseConnection,
|
||||
ConnectionOptions,
|
||||
SslOptions,
|
||||
} from './lib/Connection.js';
|
||||
import {
|
||||
Query as BaseQuery,
|
||||
QueryOptions,
|
||||
QueryError,
|
||||
} from './lib/protocol/sequences/Query.js';
|
||||
import {
|
||||
PoolCluster as BasePoolCluster,
|
||||
PoolClusterOptions,
|
||||
PoolNamespace,
|
||||
} from './lib/PoolCluster.js';
|
||||
import {
|
||||
Prepare as BasePrepare,
|
||||
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,
|
||||
SslOptions,
|
||||
PoolOptions,
|
||||
PoolClusterOptions,
|
||||
PoolNamespace,
|
||||
QueryOptions,
|
||||
QueryError,
|
||||
PrepareStatementInfo,
|
||||
};
|
||||
|
||||
export * from './lib/protocol/packets/index.js';
|
||||
export * from './lib/Auth.js';
|
||||
export * from './lib/constants/index.js';
|
||||
export * from './lib/parsers/index.js';
|
||||
export * from './lib/Connection.js';
|
||||
export * from './lib/PoolConnection.js';
|
||||
|
||||
// Expose class interfaces
|
||||
export interface Pool extends BasePool {}
|
||||
export interface PoolCluster extends BasePoolCluster {}
|
||||
export interface Query extends BaseQuery {}
|
||||
export interface Prepare extends BasePrepare {}
|
||||
|
||||
export function createConnection(connectionUri: string): BaseConnection;
|
||||
export function createConnection(config: ConnectionOptions): BaseConnection;
|
||||
|
||||
export function createPool(connectionUri: string): BasePool;
|
||||
export function createPool(config: PoolOptions): BasePool;
|
||||
|
||||
export function createPoolCluster(config?: PoolClusterOptions): PoolCluster;
|
||||
|
||||
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;
|
||||
getDefaultFlags(options?: ConnectionOptions): string[];
|
||||
getCharsetNumber(charset: string): number;
|
||||
getSSLProfile(name: string): { ca: string[] };
|
||||
parseUrl(url: string): {
|
||||
host: string;
|
||||
port: number;
|
||||
database: string;
|
||||
user: string;
|
||||
password: string;
|
||||
[key: string]: any;
|
||||
};
|
||||
}
|
||||
|
||||
export function createServer(handler: (conn: BaseConnection) => any): Server;
|
||||
|
||||
export type {
|
||||
QueryTraceContext,
|
||||
ExecuteTraceContext,
|
||||
ConnectTraceContext,
|
||||
PoolConnectTraceContext,
|
||||
} from './lib/Tracing.js';
|
||||
Loading…
Add table
Add a link
Reference in a new issue