WICG / proposals

A home for well-formed proposed incubations for the web platform. All proposals welcome.
https://wicg.io/
Other
233 stars 16 forks source link

Database API #176

Open halvardssm opened 1 month ago

halvardssm commented 1 month ago

Introduction

This proposal is for a standardized interface for SQL-like database drivers.

Introducing a simple and standardized Database API would improve the development experience for many developers, and simplify the burden of many maintainers for the database drivers as well as libraries integrated with them. SQL-based databases remain a cornerstone of data storage and retrieval in countless applications, ranging from small-scale personal projects to large-scale enterprise systems. However, the current ecosystem of JavaScript database drivers for SQL-based databases is highly fragmented, leading to inconsistent and often incompatible interfaces across different drivers.

This proposal defines the interface for SQL based databases that can serve as a base. These interfaces are intended to be extended upon in the respective implementations, to facilitate their respective expanded functionalities. This standard would also give guidelines for the signature of implementation respective methods.

Read the complete Explainer.

Previous discussions regarding this proposal have taken place in a PR, and this is the last update/state. Further discussion should take place in this issue.

Feedback (Choose One)

Please provide all feedback below.