UBERF-8884 Revert datalake to Hyperdrive use (#7437)

This commit is contained in:
Alexander Onnikov 2024-12-12 11:44:30 +07:00 committed by GitHub
parent 9dc36f91c2
commit b0d1900172
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -50,7 +50,7 @@ export async function withPostgres<T> (
fn: (db: BlobDB) => Promise<T> fn: (db: BlobDB) => Promise<T>
): Promise<T> { ): Promise<T> {
const sql = metrics.withSync('db.connect', () => { const sql = metrics.withSync('db.connect', () => {
return postgres(env.DB_URL, { return postgres(env.HYPERDRIVE.connectionString, {
connection: { connection: {
application_name: 'datalake' application_name: 'datalake'
}, },