MVP, working sentry scraper

This commit is contained in:
Mike Conrad
2025-05-18 20:44:42 -04:00
parent a34b0899ce
commit 8ea49772df
29 changed files with 724 additions and 481 deletions

View File

@ -1,13 +1,18 @@
import app from '@adonisjs/core/services/app'
import { defineConfig } from '@adonisjs/lucid'
import env from '#start/env'
const dbConfig = defineConfig({
connection: 'sqlite',
connection: 'postgres',
connections: {
sqlite: {
client: 'better-sqlite3',
postgres: {
client: 'pg',
connection: {
filename: app.tmpPath('db.sqlite3')
host: env.get('PG_HOST'),
port: env.get('PG_PORT', 5432),
user: env.get('PG_USER', 'postgres'),
password: env.get('PG_PASSWORD', 'postgres'),
database: env.get('PG_DB_NAME', 'postgres'),
},
useNullAsDefault: true,
migrations: {
@ -18,4 +23,4 @@ const dbConfig = defineConfig({
},
})
export default dbConfig
export default dbConfig