import { PrismaMariaDb } from "@prisma/adapter-mariadb";
import 'dotenv/config';
import { defineConfig } from 'prisma/config';

export default defineConfig({
    schema: "prisma/mariadb",
    datasource: {
        url: process.env["DATABASE_URL_MARIADB"],
    },
});

export const adapterMariaDb = new PrismaMariaDb({
    host: process.env.DATABASE_HOST,
    user: process.env.DATABASE_USER,
    password: process.env.DATABASE_PASSWORD,
    database: process.env.DATABASE_NAME,
    connectionLimit: 5,
});
