infoalloggi-monorepo/apps/infoalloggi/.kanelrc.js

25 lines
589 B
JavaScript
Raw Normal View History

2025-08-04 17:45:44 +02:00
const { makeKyselyHook } = require("kanel-kysely");
const ignoredTables = ["schema_migrations"];
2025-08-04 17:45:44 +02:00
/** @type {import('kanel').Config} */
module.exports = {
connection: {
host: "localhost",
user: "postgres",
database: "postgres",
password: "rootpost",
port: 5433,
2025-08-04 17:45:44 +02:00
},
typeFilter: (pgType) => !ignoredTables.includes(pgType.name),
preDeleteOutputFolder: true,
outputPath: "./src/schemas",
customTypeMap: {
"pg_catalog.tsvector": "string",
"pg_catalog.bpchar": "string",
//"pg_catalog.json": "string",
},
preRenderHooks: [makeKyselyHook()],
};