dsql-admin/dsql-app/package-shared/shell/utils/noDatabaseDbHandler.ts
Benjamin Toby e0a030f10d Updates
2025-01-13 09:00:21 +01:00

20 lines
427 B
TypeScript
Executable File

import dbHandler from "./dbHandler";
export default async function noDatabaseDbHandler(
queryString: string
): Promise<any> {
let results;
try {
results = await dbHandler({ query: queryString });
} catch (error: any) {
console.log("ERROR in noDatabaseDbHandler =>", error.message);
}
if (results) {
return results;
} else {
return null;
}
}