mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
ignore: cloud
This commit is contained in:
parent
403f9b2f1b
commit
3fa02623c3
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue