sql - HTML5 数据库的现状如何?

标签 sql database sqlite html web-sql

本规范 http://www.w3.org/TR/webdatabase/说:

This document was on the W3C Recommendation track but specification work has stopped. The specification reached an impasse: all interested implementors have used the same SQL backend (Sqlite), but we need multiple independent implementations to proceed along a standardisation path.

这是否意味着 HTML5 数据库即将消失,并且在一段时间内我们将拥有一个使用 SQLite 的事实上的标准,可能会存在浏览器差异?或者 W3C 是否发布了完成标准的攻击计划?

最佳答案

根据 this article :

[...] we think it is worth explaining our design choices, and why we think IndexedDB is a better solution for the web than Web SQL Database.

In another article, we compare IndexedDB with Web SQL Database, and note that the former provides much syntactic simplicity over the latter. IndexedDB leaves room for a third-party JavaScript library to straddle the underlying primitives with a BTree API, and we look forward to seeing initiatives like BrowserCouch built on top of IndexedDB. Intrepid web developers can even build a SQL API on top of IndexedDB. We’d particularly welcome an implementation of the Web SQL Database API on top of IndexedDB, since we think that this is technically feasible. Starting with a SQL-based API for use with browser primitives wasn’t the right first step, but certainly there’s room for SQL-based APIs on top of IndexedDB.

我个人并没有被文章中提出的论点所左右,但很明显(目前)Mozilla 已经决定Web SQL 数据库已死

关于这篇文章的更多有趣评论可以在on Hacker News中找到.

关于sql - HTML5 数据库的现状如何?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4720592/

相关文章:

android - SQLite 异常 : no such table Error

MySQL' INSERT ... ON DUPLICATE KEY UPDATE 主键限制

javascript - 从 TaffyDB 输出数据

javascript - 创建另一个帐户后显示失败 "Sorry, your registration failed. Please go back and try again."

sql - 按照LINK中的代码后PL/SQL MENU疑惑

ios - 没有这样的表..无法执行查询…xcode sqlite

java - 如何在数据库中搜索特定单词(值)?

sql - 如何快速查询大数据?

mysql - 从 A 列中具有相同值的每组行中删除除 B 列中具有最高值的行之外的所有行

mysql - my.cnf 根据配置优化