MCPcopy Create free account
hub / github.com/effect-app/libs / toRow

Function toRow

packages/infra/src/Store/SQL/Pg.ts:80–86  ·  view source on GitHub ↗
(e: PM)

Source from the content-addressed store, hash-verified

78 if (namespace !== "primary" && !config.allowNamespace!(namespace)) {
79 throw new Error(`Namespace ${namespace} not allowed!`)
80 }
81 return namespace
82 }))
83
84 const ensureTable = sql
85 .unsafe(
86 `CREATE TABLE IF NOT EXISTS "${tableName}" (id TEXT NOT NULL, _namespace TEXT NOT NULL DEFAULT 'primary', _etag TEXT, data JSONB NOT NULL, PRIMARY KEY (id, _namespace))`
87 )
88 .pipe(
89 Effect.andThen(

Callers 1

Pg.tsFile · 0.70

Calls 1

makeETagFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…