polyneuroparty
DTDrizzle Team
•Created by polyneuroparty on 11/5/2024 in #help
StatementTimeoutException: Request timed out
This is what I have:
// packages/core/drizzle/db.ts
import { RDSDataClient } from '@aws-sdk/client-rds-data'
import { drizzle } from 'drizzle-orm/aws-data-api/pg'
import { RDS } from 'sst/node/rds'
import * as schema from './schema'
const client = new RDSDataClient({})
export const db = drizzle(client, {
database: RDS.db.defaultDatabaseName,
secretArn: RDS.db.secretArn,
resourceArn: RDS.db.clusterArn,
schema,
})
And later on I'm importing this db and use it in lambda handlers and helpers.2 replies