ignore: cloud
parent
403f9b2f1b
commit
3fa02623c3
|
|
@ -3,7 +3,7 @@ import { Resource } from "sst"
|
|||
export * from "drizzle-orm"
|
||||
import postgres from "postgres"
|
||||
|
||||
const createClient = () => {
|
||||
const init = () => {
|
||||
const client = postgres({
|
||||
idle_timeout: 30000,
|
||||
connect_timeout: 30000,
|
||||
|
|
@ -20,6 +20,8 @@ const createClient = () => {
|
|||
return drizzle(client, {})
|
||||
}
|
||||
|
||||
const createClient = "NODE_ENV" in process.env ? init : memo(init)
|
||||
|
||||
import { PgTransaction, type PgTransactionConfig } from "drizzle-orm/pg-core"
|
||||
import type { ExtractTablesWithRelations } from "drizzle-orm"
|
||||
import type { PostgresJsQueryResultHKT } from "drizzle-orm/postgres-js"
|
||||
|
|
|
|||
Loading…
Reference in New Issue