Home

Awesome

wasi-sql

A proposed WebAssembly System Interface API.

Current Phase

wasi-sql is currently in Phase 1.

Champions

Phase 4 Advancement Criteria

wasi-sql should have at least two implementations (i.e., from service providers, and or cloud providers), and, at the very minimum, pass the testsuite for Windows, Linux, and MacOS.

Table of Contents

Introduction

The wasi-sql interface allows WebAssembly programs to interact with SQL databases in a generic and safe way. It provides functions for querying and modifying data, using prepared statements and handling errors. The interface is flexible and consistent, supporting various SQL flavors.

Goals

The wasi-sql interface aims to provide a consistent and easy-to-use way for WebAssembly programs to access and manipulate data stored in SQL databases. It targets the features commonly used by 80% of user applications. By focusing on commonly used features, the interface aims to provide a simple and reliable way to build stateful services that access SQL databases.

The wasi-sql interface abstracts away specific SQL flavors and database APIs, allowing WebAssembly programs to be portable across different SQL databases that support the interface. It also abstracts away the network stack, allowing WebAssembly programs to access SQL databases without worrying about the specific network protocol used. This allows users to focus on building their applications, rather than communication details with the database.

Non-goals

API walk-through

For a full API walk-through, see wasi-sql-demo.

Note: This README needs to be expanded to cover a number of additional fields suggested in the WASI Proposal template.