1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-27 23:46:39 +01:00

chore: ignore errors

This commit is contained in:
Amir Raminfar
2024-09-21 14:19:26 -07:00
parent 0d783c26cb
commit 0f8bea46af

View File

@@ -76,7 +76,9 @@ const empty = await conn.query<Record<string, any>>(`SELECT 1 LIMIT 0`);
const { isReady } = useAsyncState(
async () => {
await db.registerFileBuffer("logs.json", new Uint8Array(await response.arrayBuffer()));
await conn.query(`CREATE TABLE logs AS SELECT unnest(m) FROM 'logs.json'`);
await conn.query(
`CREATE TABLE logs AS SELECT unnest(m) FROM read_json('logs.json', ignore_errors = true, format = 'newline_delimited')`,
);
},
undefined,
{