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

Function import

repos/effect/packages/sql/sqlite-wasm/src/SqliteClient.ts:246–251  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

244 try: () => sqlite3.serialize(db, "main"),
245 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to export database", "export") })
246 }),
247 import(data) {
248 return Effect.try({
249 try: () => sqlite3.deserialize(db, "main", data, data.length, data.length, 1 | 2),
250 catch: (cause) => new SqlError({ reason: classifyError(cause, "Failed to import database", "import") })
251 })
252 }
253 })
254 })

Callers

nothing calls this directly

Calls 3

classifyErrorFunction · 0.70
sendFunction · 0.70
withPermitsMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…