mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
Use disposable symbol to ensure connection cleanup. Improvements to internal types. Code splitting and removal of redundant variables.
24 lines
460 B
TypeScript
24 lines
460 B
TypeScript
import { setDebug } from '../config';
|
|
import { sleep } from '../utils/sleep';
|
|
import { pool, createConnectionPool } from './pool';
|
|
|
|
setTimeout(async () => {
|
|
setDebug();
|
|
|
|
while (!pool) {
|
|
await createConnectionPool();
|
|
|
|
if (!pool) await sleep(30000);
|
|
}
|
|
});
|
|
|
|
setInterval(() => {
|
|
setDebug();
|
|
}, 1000);
|
|
|
|
export * from './connection';
|
|
export * from './rawQuery';
|
|
export * from './rawExecute';
|
|
export * from './rawTransaction';
|
|
export * from './pool';
|