[英]Does IndexedDB support SQL-like transactions?
Yes it does. 是的,它确实。
IndexedDB is built on a transactional database model.
IndexedDB建立在事务数据库模型上。 Everything you do in IndexedDB always happens in the context of a transaction.
您在IndexedDB中所做的一切始终在事务的上下文中发生。 The IndexedDB API provides lots of objects that represent indexes, tables, cursors, and so on, but each of these is tied to a particular transaction.
IndexedDB API提供了许多对象,这些对象代表索引,表,游标等,但每个对象都与特定的事务绑定。 Thus, you cannot execute commands or open cursors outside of a transaction.
因此,您无法在事务外部执行命令或打开游标。
Further information there. 那里有更多信息。
Source: https://developer.mozilla.org/en-US/docs/IndexedDB/Basic_Concepts_Behind_IndexedDB 来源: https : //developer.mozilla.org/en-US/docs/IndexedDB/Basic_Concepts_Behind_IndexedDB
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.