feat!: Implement Prisma for persistent storage

This commit is contained in:
Marius Begby committed 2023-12-24 22:44:13 +01:00
1 parent 800caec3e3
commit ad29a6388d
7 files changed
+75 -1

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { getPrismaClient } from './prismaClient';
const prisma = getPrismaClient();
const guildDatabaseService = {
async getAllGuilds() {
return await prisma.guild.findMany();
}
};
export default guildDatabaseService;