try drizzle with hardcoded connection string

This commit is contained in:
einhornimmond 2025-12-06 15:59:47 +01:00
parent 29bbecfe44
commit d0a7becc1f
3 changed files with 3 additions and 7 deletions

View File

@ -61,11 +61,6 @@ jobs:
bun install --filter database --frozen-lockfile
bun install --global --no-save turbo@^2
- name: wait on mariadb & redis ready
run: |
until nc -z 127.0.0.1 3306; do echo waiting for mariadb; sleep 1; done;
until nc -z 127.0.0.1 6379; do echo waiting for redis; sleep 1; done;
- name: Database | up + test
run: turbo database#test database#build database#typecheck

View File

@ -113,7 +113,8 @@ export class AppDatabase {
database: CONFIG.DB_DATABASE,
port: CONFIG.DB_PORT,
})
this.drizzleDataSource = drizzle({ client: this.drizzleConnection })
// this.drizzleDataSource = drizzle({ client: this.drizzleConnection })
this.drizzleDataSource = drizzle('mysql2://root@127.0.0.1:3306/gradido_test')
}
}

View File

@ -1,5 +1,5 @@
import { eq } from 'drizzle-orm'
import { MySql2Database } from 'drizzle-orm/mysql2'
import { drizzle, MySql2Database } from 'drizzle-orm/mysql2'
import { AppDatabase, drizzleDb } from '../AppDatabase'
import { openaiThreadsTable } from '../schemas'
import {