Skip to content

Database API #176

@halvardssm

Description

@halvardssm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions