Creating a Reusable SurrealDB Service with Effect-TS
Hi everyone,
I'm new to effect-ts and trying to create a reusable service (Context.Tag) for managing my SurrealDB connection. The goal is to initialize this service and use it across different environments (e.g., server-side with Hono/SvelteKit, potentially client-side Svelte components - though I understand direct client DB access isn't standard).
I've managed to create an Effect using Effect.acquireRelease to handle the SurrealDB client connection lifecycle, based on some examples:
Thanks!
I'm new to effect-ts and trying to create a reusable service (Context.Tag) for managing my SurrealDB connection. The goal is to initialize this service and use it across different environments (e.g., server-side with Hono/SvelteKit, potentially client-side Svelte components - though I understand direct client DB access isn't standard).
I've managed to create an Effect using Effect.acquireRelease to handle the SurrealDB client connection lifecycle, based on some examples:
Thanks!
