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

Function toRow

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

Source from the content-addressed store, hash-verified

102 `CREATE TABLE IF NOT EXISTS "${tableName}" (id TEXT NOT NULL, _namespace TEXT NOT NULL DEFAULT 'primary', _etag TEXT, data ${jsonColumnType} NOT NULL, PRIMARY KEY (id, _namespace))`
103 )
104 .pipe(
105 Effect.andThen(
106 sql.unsafe(
107 `CREATE TABLE IF NOT EXISTS "_migrations" (id TEXT NOT NULL, version TEXT NOT NULL, PRIMARY KEY (id, version))`
108 )
109 ),
110 Effect.orDie,
111 Effect.asVoid
112 )
113

Callers 2

makeSQLStoreIntFunction · 0.70
makeSQLiteStorePerNsFunction · 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…