import type { Config } from "drizzle-kit";
import * as dotenv from "dotenv";
dotenv.config({
path: ".env",
});
export default {
schema: "src/db/schema.ts",
driver: "mysql2",
out: "src/db",
verbose: true,
dbCredentials: {
//@ts-ignore
socketPath: process.env.DB_SOCKET_PATH as string,
host: "127.0.0.1",
uri: process.env.DB_URL as string,
},
strict: true,
tablesFilter: [`${process.env.DB_TABLES_FILTER as string}*`],
breakpoints: true,
} satisfies Config;
import type { Config } from "drizzle-kit";
import * as dotenv from "dotenv";
dotenv.config({
path: ".env",
});
export default {
schema: "src/db/schema.ts",
driver: "mysql2",
out: "src/db",
verbose: true,
dbCredentials: {
//@ts-ignore
socketPath: process.env.DB_SOCKET_PATH as string,
host: "127.0.0.1",
uri: process.env.DB_URL as string,
},
strict: true,
tablesFilter: [`${process.env.DB_TABLES_FILTER as string}*`],
breakpoints: true,
} satisfies Config;