/* * Copyright (C)2005-2013 Haxe Foundation * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ // This file is generated, do not edit! package js.html.idb; /**
The IDBTransaction
interface of the IndexedDB API provides a static, asynchronous transaction on a database using event handler attributes. All reading and writing of data are done within transactions. You actually use IDBDatabase
to start transactions and use IDBTransaction
to set the mode of the transaction and access an object store and make your request. You can also use it to abort transactions.
Inherits from: EventTarget
setVersion()
method of IDBDatabase objects. Transactions of this mode cannot run concurrently with other transactions. */
static inline var VERSION_CHANGE : Int = 2;
/** The database connection that this transaction is associated with. */
var db(default,null) : Database;
var error(default,null) : js.html.DOMError;
/** The mode for isolating access to data in the object stores that are in the scope of the transaction. For possible values, see Constants. The default value is READ_ONLY
. */
var mode(default,null) : String;
/** The event handler for the onabort
event. */
var onabort : js.html.EventListener;
/** The event handler for the oncomplete
event. */
var oncomplete : js.html.EventListener;
/** The event handler for the error
event. */
var onerror : js.html.EventListener;
function abort() : Void;
function objectStore( name : String ) : ObjectStore;
}