feat(core): Warn about data table module usage (no-changelog) (#18718)

This commit is contained in:
Charlie Kolb
2025-08-25 15:42:58 +02:00
committed by GitHub
parent 3c8f40007e
commit e6b6678128

View File

@@ -1,11 +1,20 @@
import { Logger } from '@n8n/backend-common';
import type { ModuleInterface } from '@n8n/decorators';
import { BackendModule, OnShutdown } from '@n8n/decorators';
import { Container } from '@n8n/di';
import { BaseEntity } from '@n8n/typeorm';
const YELLOW = '\x1b[33m';
const CLEAR = '\x1b[0m';
const DATA_TABLE_WARNING_MESSAGE = `[Data Table] The data table module is experimental and subject to change.
Any tables added before the official release may become inaccessible at any point. Use at your own risk.`;
@BackendModule({ name: 'data-table' })
export class DataTableModule implements ModuleInterface {
export class DataStoreModule implements ModuleInterface {
async init() {
const logger = Container.get(Logger).scoped('data-table');
logger.warn(`${YELLOW}${DATA_TABLE_WARNING_MESSAGE}${CLEAR}`);
await import('./data-store.controller');
await import('./data-store-aggregate.controller');