Quick proof of concept for twenty-apps + twenty-cli, with local development / hot reload Let's discuss it! https://github.com/user-attachments/assets/c6789936-cd5f-4110-a265-863a6ac1af2d
12 lines
293 B
TypeScript
12 lines
293 B
TypeScript
const TEST_SCHEMA_NAME = 'workspace_1wgvd1injqtife6y4rvfbu3h5';
|
|
|
|
export const deleteAllRecords = async (objectNameSingular: string) => {
|
|
try {
|
|
await global.testDataSource.query(
|
|
`DELETE from "${TEST_SCHEMA_NAME}"."${objectNameSingular}"`,
|
|
);
|
|
} catch {
|
|
/* empty */
|
|
}
|
|
};
|