mssql-change-tracking
Version:
MS SQL server change tracking functions
16 lines (15 loc) • 828 B
TypeScript
import sql from "mssql";
declare type CtIsVersionValid = QueryInput & {
pool: sql.ConnectionPool;
};
/**
* @description This function is to check the validity of the value of versionNumber against all tables in the database.
* @note If an application has a value for last_synchronization_version that is older than the minimum valid synchronization version for a table, that application cannot perform valid change enumeration. This is because some change information might have been cleaned up.
*/
export declare function ctIsVersionValidAllTables({ pool, versionNumber, }: CtIsVersionValid): Promise<boolean>;
declare type QueryInput = {
versionNumber: string;
dbName?: string;
};
export declare function ctIsVersionValidAllTablesQuery({ versionNumber, dbName, }: QueryInput): string;
export {};