UNPKG

mssql-change-tracking

Version:
13 lines (12 loc) 701 B
import sql from "mssql"; declare type CtCurrentVersionInput = { pool: sql.ConnectionPool; dbName?: string; }; /** @description this function is used to obtain the current version that will be used the next time when querying changes. This version represents the version of the last committed transaction. */ export declare function ctCurrentVersion({ pool, dbName, }: CtCurrentVersionInput): Promise<string>; /** * @reference https://docs.microsoft.com/en-us/sql/relational-databases/track-changes/work-with-change-tracking-sql-server?view=sql-server-ver15#about-the-change-tracking-functions */ export declare function ctCurrentVersionQuery(dbName?: string): string; export {};