The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as Layer from "effect/Layer"; |
| 2 | import { makeFirestoreDatabaseBinding, readDatabaseIam } from "./DatabaseHttp.ts"; |
| 3 | import { ReadDatabase } from "./ReadDatabase.ts"; |
| 4 | |
| 5 | /** |
| 6 | * HTTP implementation of {@link ReadDatabase} over the Firestore REST API. |
| 7 | * |
| 8 | * @layer |
| 9 | * @provides GCP.Firestore.ReadDatabase |
| 10 | * @category Firestore |
| 11 | */ |
| 12 | export const ReadDatabaseHttp = Layer.effect( |
| 13 | ReadDatabase, |
| 14 | makeFirestoreDatabaseBinding({ |
| 15 | tag: "GCP.Firestore.ReadDatabase", |
| 16 | iam: readDatabaseIam, |
| 17 | makeClient: (helpers, name) => helpers.makeRead(name), |
| 18 | }), |
| 19 | ); |