feat: add neo4j

This commit is contained in:
2024-09-25 14:02:45 +08:00
parent 4cbc72def7
commit 25c055b490
16 changed files with 554 additions and 113 deletions

View File

@@ -1,12 +1,15 @@
import { App } from '@abearxiong/router';
import { useConfig } from '@abearxiong/use-config';
import { dynamicImport } from './lib/dynamic-import.ts';
import { redisPublisher, redisSubscriber } from './modules/redis.ts';
import { redisPublisher, redisSubscriber, redis } from './modules/redis.ts';
import { neode } from './modules/neo4j.ts';
import { minioClient } from './modules/minio.ts';
import { sequelize } from './modules/sequelize.ts';
useConfig();
export const emit = (channel: string, message?: any) => {
redisPublisher.publish(channel, JSON.stringify(message));
};
export { neode, redis, minioClient, sequelize };
export const app = new App<{ import: any; emit: typeof emit }>({
serverOptions: {