| 1 | import { Function } from "@/Neon/Function"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | import { ConnectBranch } from "./connect-database.ts"; |
| 4 | import { connectHandler } from "./connect-handler.ts"; |
| 5 | |
| 6 | export default class ConnectFunction extends Function<ConnectFunction>()( |
| 7 | "ConnectFunction", |
| 8 | Effect.gen(function* () { |
| 9 | return { branch: yield* ConnectBranch, main: import.meta.url }; |
| 10 | }), |
| 11 | connectHandler, |
| 12 | ) {} |