MCPcopy Create free account
hub / github.com/Effect-TS/effect / import

Function import

packages/sql/sqlite-wasm/src/SqliteClient.ts:261–266  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

259 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to export database", "export") })
260 }),
261 import(data) {
262 return Effect.try({
263 try: () => sqlite3.deserialize(db, "main", data, data.length, data.length, 1 | 2),
264 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to import database", "import") })
265 })
266 }
267 })
268 })
269

Callers

nothing calls this directly

Calls 2

classifyErrorFunction · 0.70
sendFunction · 0.70

Tested by

no test coverage detected