chore(core): Rename Data Store module to Data Table (no-changelog) (#18675)

This commit is contained in:
Charlie Kolb
2025-08-25 14:57:23 +02:00
committed by GitHub
parent 1f1730c27d
commit 2dc34b2f17
36 changed files with 37 additions and 36 deletions
@@ -0,0 +1,34 @@
import type { ModuleInterface } from '@n8n/decorators';
import { BackendModule, OnShutdown } from '@n8n/decorators';
import { Container } from '@n8n/di';
import { BaseEntity } from '@n8n/typeorm';
@BackendModule({ name: 'data-table' })
export class DataTableModule implements ModuleInterface {
async init() {
await import('./data-store.controller');
await import('./data-store-aggregate.controller');
const { DataStoreService } = await import('./data-store.service');
await Container.get(DataStoreService).start();
const { DataStoreAggregateService } = await import('./data-store-aggregate.service');
await Container.get(DataStoreAggregateService).start();
}
@OnShutdown()
async shutdown() {
const { DataStoreService } = await import('./data-store.service');
await Container.get(DataStoreService).shutdown();
const { DataStoreAggregateService } = await import('./data-store-aggregate.service');
await Container.get(DataStoreAggregateService).start();
}
async entities() {
const { DataStore } = await import('./data-store.entity');
const { DataStoreColumn } = await import('./data-store-column.entity');
return [DataStore, DataStoreColumn] as unknown as Array<new () => BaseEntity>;
}
}