Skip to content

Instantly share code, notes, and snippets.

View rohovskoi's full-sized avatar
🎯
Focusing

m rohovskoi

🎯
Focusing
  • Germany
View GitHub Profile
@rohovskoi
rohovskoi / drizzle-effect-bridge.ts
Last active January 12, 2026 02:28
(POC): DrizzleEffectBridge translates drizzle-orm/effect-postgres's Effect-based execution model to Promise-based expectations from third-party libraries.
import * as Effect from 'effect/Effect';
import * as Runtime from 'effect/Runtime';
/** Represents any object that can be wrapped by the proxy */
type AnyObject = Record<string | symbol, unknown>;
/** The thenable interface that a third-party library expects when awaiting queries */
type ThenableFunction<T> = (
onfulfilled?: (value: T) => unknown,
onrejected?: (reason: unknown) => unknown,