HTML5数据库的状态是什么? [英] What is the status of HTML5 Database?

查看:243
本文介绍了HTML5数据库的状态是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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


本文档位于W3C推荐标准,但规范工作已停止。规范达到了僵局:所有感兴趣的实现者都使用相同的SQL后端(Sqlite),但是我们需要多个独立的实现沿着标准化路径继续。

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,可能有浏览器的差异?

Does this mean that HTML5 database is going away, and for some time we will have a de-facto standard using SQLite, possibly with browser differences? Or has the W3C published a plan of attack for finishing the standard?

推荐答案

根据本文


[...]我们认为值得解释我们的设计选择,为什么我们认为 IndexedDB 是比Web SQL数据库更好的Web解决方案。

[...] 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.

在另一篇文章中, href =http://hacks.mozilla.org/2010/06/comparing-indexeddb-and-webdatabase =noreferrer>将IndexedDB与Web SQL数据库进行比较,并注意前者提供了很多句法简单。 IndexedDB为第三方JavaScript库留出了空间,可以使用BTree API跨接底层原语,我们期待看到像IndexCount之类的创建的计划。 Intrepid Web开发人员甚至可以在IndexedDB之上构建一个SQL API。我们特别欢迎在IndexedDB之上实施Web SQL数据库API,因为我们认为这在技术上是可行的。从基于SQL的API开始,使用浏览器原语不是第一步,但肯定有在IndexedDB之上基于SQL的API的空间。

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数据库已死

I'm not personally swayed by the arguments put forth in the article, but it seems clear that (for the time being) Mozilla has decided that Web SQL Database is dead.

有关此文章的其他有趣评论可能来自在Hacker News 上。

Further interesting comments about this article may be found on Hacker News.

这篇关于HTML5数据库的状态是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆