docs.rs failed to build vibesql-wasm-bindings-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
vibesql-wasm-bindings
WebAssembly bindings for VibeSQL SQL database engine.
Overview
This crate provides WebAssembly bindings that allow VibeSQL to run in web browsers and other JavaScript environments. It exposes a clean JavaScript API for executing SQL queries and managing databases.
Features
- Browser Support: Runs entirely in the browser with no server required
- OPFS Storage: Persistent storage using Origin Private File System
- Full SQL Support: Complete SQL:1999 implementation in WASM
- Type-Safe API: Strongly-typed JavaScript interface
- JSON Results: Query results serialized as JSON for easy integration
- Schema Management: Create tables, indexes, views, and more
- Transaction Support: Full ACID transaction support in the browser
Installation
Usage
import init from 'vibesql-wasm';
// Initialize WASM module
await ;
// Create database instance
const db = ;
// Execute DDL
await db.;
// Insert data
await db.;
// Query data
const result = await db.;
console.log;
Building
# Build the WASM package
# Or for Node.js
Documentation
License
This project is licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.