(data)
| 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 |
nothing calls this directly
no test coverage detected