@bazilio-san/af-stream
Version:
Data stream from database table
10 lines (8 loc) • 535 B
text/typescript
export const TS_FIELD = Symbol.for('TS_FIELD');
export const MILLIS_IN_DAY = 86_400_000;
export const MILLIS_IN_HOUR = 3_600_000;
const DEBUG = (String(process.env.DEBUG || '')).trim();
export const DEBUG_SQL = /\baf-stream:sql\b/i.test(DEBUG); // Portion SQL
export const DEBUG_LTR = /\baf-stream:ltr\b/i.test(DEBUG); // LastTimeRecords
export const DEBUG_LNP = /\baf-stream:lnp\b/i.test(DEBUG); // before & after load next portion
export const DEBUG_STREAM = /\baf-stream:stream\b/i.test(DEBUG); // before & after load next portion