Skip to content

Commit

Permalink
コミット
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Jan 16, 2025
1 parent 4951baa commit f2208d4
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/main.mts
Original file line number Diff line number Diff line change
Expand Up @@ -297,15 +297,24 @@ document.addEventListener('DOMContentLoaded', async () => {
accessMode: duckdb.DuckDBAccessMode.READ_WRITE,
})

const opfsStatusElement = document.getElementById('opfsStatus')
if (opfsStatusElement) {
opfsStatusElement.textContent = 'OPFS: true'
}
const conn = await db.connect()
await conn.query(`
INSTALL parquet;
LOAD parquet;
INSTALL json;
LOAD json;
`)
await conn.close()

const buffer = await getParquetBuffer(PARQUET_FILE_URL)
console.log(buffer)
await readParquetFile(db, buffer)

const opfsStatusElement = document.getElementById('opfsStatus')
if (opfsStatusElement) {
opfsStatusElement.textContent = 'OPFS: true'
}

const countedElement = document.getElementById('counted')
if (countedElement) {
const conn = await db.connect()
Expand Down

0 comments on commit f2208d4

Please sign in to comment.