t3-code-android-nightly/.repos/alchemy-effect/packages/alchemy/test/Neon/fixtures/connect-function.ts
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

12 lines
416 B
TypeScript

import { Function } from "@/Neon/Function";
import * as Effect from "effect/Effect";
import { ConnectBranch } from "./connect-database.ts";
import { connectHandler } from "./connect-handler.ts";
export default class ConnectFunction extends Function<ConnectFunction>()(
"ConnectFunction",
Effect.gen(function* () {
return { branch: yield* ConnectBranch, main: import.meta.url };
}),
connectHandler,
) {}