removed questdb

This commit is contained in:
Boki 2025-06-22 10:00:54 -04:00
parent 8165994fde
commit d63025de90
2 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import { MongoDBClient } from './client';
import type { MongoDBClientConfig, ConnectionEvents } from './types';
import type { ConnectionEvents, MongoDBClientConfig } from './types';
/**
* Factory function to create a MongoDB client instance
@ -17,6 +17,7 @@ export async function createAndConnectMongoDBClient(
events?: ConnectionEvents
): Promise<MongoDBClient> {
const client = createMongoDBClient(config, logger, events);
this.logger = logger || console; // Fallback to console if no logger provided
await client.connect();
return client;
}