import { defineConfig } from '@adonisjs/lucid';
import env from '../env.js';
const dbConfig = defineConfig({
    connection: 'api',
    prettyPrintDebugQueries: true,
    connections: {
        api: {
            client: 'pg',
            connection: {
                host: env.get('DB_HOST'),
                user: env.get('DB_API_USER'),
                password: env.get('DB_API_PASSWORD'),
                database: env.get('DB_NAME'),
            },
        },
        migrations: {
            client: 'pg',
            connection: {
                host: env.get('DB_HOST'),
                user: env.get('DB_ADMIN_USER'),
                password: env.get('DB_ADMIN_PASSWORD'),
                database: env.get('DB_NAME'),
            },
            migrations: {
                naturalSort: true,
                disableRollbacksInProduction: true,
            },
        },
    },
});
export default dbConfig;
import { types } from 'pg';
types.setTypeParser(1700, parseFloat);
//# sourceMappingURL=database.js.map