dsql-admin/dsql-app/package-shared/shell/utils/noDatabaseDbHandler.ts

20 lines
427 B
TypeScript
Raw Normal View History

2025-01-13 08:00:21 +00:00
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;
}
}