/[sudobot]/trunk/drizzle.config.ts
ViewVC logotype

Annotation of /trunk/drizzle.config.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 575 - (hide annotations)
Mon Jul 29 17:59:26 2024 UTC (8 months ago) by rakinar2
File MIME type: application/typescript
File size: 679 byte(s)
chore: add trunk
1 rakinar2 575 require("dotenv/config");
2     const { readdirSync } = require("fs");
3     const path = require("path");
4    
5     try {
6     const { defineConfig } = require("drizzle-kit");
7    
8     module.exports = defineConfig({
9     dialect: "postgresql",
10     out: "./drizzle",
11     schema: readdirSync(path.resolve(__dirname, "src/main/typescript/models")).map(
12     (file: string) => path.resolve(__dirname, "src/main/typescript/models", file)
13     ),
14     dbCredentials: {
15     url: process.env.DB_URL
16     },
17     // Print all statements
18     verbose: true,
19     // Always ask for confirmation
20     strict: true
21     });
22     } catch (error) {
23     console.error(error);
24     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26