mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 23:29:05 +00:00
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
import mongoose from 'mongoose';
|
|
import { getLogger } from '../utils/logger';
|
|
import { initDatabaseHelper } from '../helpers/database';
|
|
|
|
/**
|
|
* Class to handle database actions
|
|
*/
|
|
class DatabaseService {
|
|
static async initDatabase(MONGO_URL: string) {
|
|
return await initDatabaseHelper({
|
|
mongoURL: MONGO_URL
|
|
});
|
|
}
|
|
}
|
|
|
|
export default DatabaseService; |