ladybird/Libraries/LibWeb/IndexedDB/IDBTransaction.idl

26 lines
755 B
Text
Raw Normal View History

2024-11-07 19:00:20 +01:00
#import <DOM/EventTarget.idl>
#import <IndexedDB/IDBDatabase.idl>
#import <IndexedDB/IDBObjectStore.idl>
[Exposed=(Window,Worker)]
interface IDBTransaction : EventTarget {
readonly attribute DOMStringList objectStoreNames;
2024-11-07 19:00:20 +01:00
readonly attribute IDBTransactionMode mode;
readonly attribute IDBTransactionDurability durability;
[SameObject, ImplementedAs=connection] readonly attribute IDBDatabase db;
2024-11-07 19:00:20 +01:00
readonly attribute DOMException? error;
IDBObjectStore objectStore(DOMString name);
undefined commit();
undefined abort();
2024-11-07 19:00:20 +01:00
attribute EventHandler onabort;
attribute EventHandler oncomplete;
attribute EventHandler onerror;
};
enum IDBTransactionMode {
"readonly",
"readwrite",
"versionchange"
};