
Barebones example of querying with duckdb-wasm using Vite and just the browser (no front-end framework). No dataset file is loaded; the data is created using the generate_series function.
DuckDB-WASM is an innovative tool that allows developers to run SQL queries directly in the browser using WebAssembly. This barebones example showcases how to query data without relying on a front-end framework, making it an excellent choice for quick prototyping or learning how to integrate SQL directly into web applications. The simplicity of running this example, combined with the power of DuckDB, opens up new avenues for data analysis right in your browser.
In this example, data is generated on-the-fly using the generate_series function, making it convenient for developers who want to work with dynamic datasets without the hassle of loading files. The example provides a user-friendly approach to running DuckDB queries and facilitates an understanding of how to efficiently manage database connections directly from the browser.
npm i, ensuring a hassle-free start to querying data.generate_series function to create data on-the-fly, perfect for testing and learning without loading dataset files.
Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects