feat: 打通出库作业链路

This commit is contained in:
zgw
2026-06-24 09:13:18 +08:00
parent a3c023a8d3
commit 1af5b3cbd3
141 changed files with 17337 additions and 1065 deletions

View File

@@ -0,0 +1,21 @@
import { type IResult } from "mssql";
import type { ServerConfig } from "./config.js";
import { type SqlParam } from "./sql.js";
export type QueryResult = IResult<Record<string, unknown>>;
export declare class SqlServerClient {
private readonly config;
private readonly pools;
constructor(config: ServerConfig);
get allowedDatabases(): string[];
get defaultDatabase(): string;
get readOnly(): boolean;
get enableDdl(): boolean;
get maxRows(): number;
get maxWriteRows(): number;
query(databaseName: string | undefined, statement: string, params?: SqlParam[]): Promise<QueryResult>;
batch(databaseName: string | undefined, statement: string): Promise<QueryResult>;
close(): Promise<void>;
private getPool;
}
export declare function useDatabaseStatement(databaseName: string): string;
//# sourceMappingURL=db.d.ts.map