mssql-change-tracking
Version:
MS SQL server change tracking functions
15 lines (14 loc) • 548 B
TypeScript
import sql from "mssql";
declare type CtGrantAccess = QueryInput & {
pool: sql.ConnectionPool;
};
/** grant access to change tracking data for specific table to specific user */
export declare function ctAccessGrant({ pool, userName, tableName, dbName, schema, }: CtGrantAccess): Promise<void>;
declare type QueryInput = {
schema?: string;
dbName?: string;
tableName: string;
userName: string;
};
export declare function ctAccessGrantQuery({ tableName, userName, schema, dbName, }: QueryInput): string;
export {};