Files
ladybird/Libraries/LibWeb/IndexedDB/IDBTransaction.idl
stelar7 5298ecfc94 LibWeb/IDB: Implement IDBTransaction attributes
This also uncovered a bug, where the transactions type was never set :^)
2025-04-09 11:48:49 -06:00

26 lines
771 B
Plaintext

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