This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import * as PgDrizzle from "@effect/sql-drizzle/Pg"; | |
| import { PgClient } from "@effect/sql-pg"; | |
| import { Config, Effect } from "effect"; | |
| import * as schema from "~/lib/server/schema"; | |
| const PgLive = PgClient.layerConfig({ | |
| url: Config.redacted("DATABASE_URL"), | |
| }); | |
| export class DrizzleClient extends Effect.Service<DrizzleClient>()("app/DrizzleClient", { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* eslint-disable @typescript-eslint/no-explicit-any */ | |
| import { type TRPCQueryOptions } from '@trpc/tanstack-react-query'; | |
| import { unstable_noStore } from 'next/cache'; | |
| import { Fragment, Suspense, type ReactNode } from 'react'; | |
| import { ErrorBoundary } from 'react-error-boundary'; | |
| import { HydrateClient, prefetch as prefetchTRPC } from '@/trpc/server'; | |
| type AwaitProps<T> = | |
| | { | |
| promise: Promise<T>; |