summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_IdbDatabase.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_IdbDatabase.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_IdbDatabase.rs')
-rw-r--r--vendor/web-sys/src/features/gen_IdbDatabase.rs200
1 files changed, 200 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_IdbDatabase.rs b/vendor/web-sys/src/features/gen_IdbDatabase.rs
new file mode 100644
index 000000000..ebcb2f627
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_IdbDatabase.rs
@@ -0,0 +1,200 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBDatabase , typescript_type = "IDBDatabase")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `IdbDatabase` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub type IdbDatabase;
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = name)]
+ #[doc = "Getter for the `name` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/name)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn name(this: &IdbDatabase) -> String;
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = version)]
+ #[doc = "Getter for the `version` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/version)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn version(this: &IdbDatabase) -> f64;
+ #[cfg(feature = "DomStringList")]
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = objectStoreNames)]
+ #[doc = "Getter for the `objectStoreNames` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/objectStoreNames)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbDatabase`*"]
+ pub fn object_store_names(this: &IdbDatabase) -> DomStringList;
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onabort)]
+ #[doc = "Getter for the `onabort` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn onabort(this: &IdbDatabase) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onabort)]
+ #[doc = "Setter for the `onabort` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn set_onabort(this: &IdbDatabase, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onclose)]
+ #[doc = "Getter for the `onclose` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn onclose(this: &IdbDatabase) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onclose)]
+ #[doc = "Setter for the `onclose` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn set_onclose(this: &IdbDatabase, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onerror)]
+ #[doc = "Getter for the `onerror` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn onerror(this: &IdbDatabase) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onerror)]
+ #[doc = "Setter for the `onerror` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn set_onerror(this: &IdbDatabase, value: Option<&::js_sys::Function>);
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = onversionchange)]
+ #[doc = "Getter for the `onversionchange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn onversionchange(this: &IdbDatabase) -> Option<::js_sys::Function>;
+ # [wasm_bindgen (structural , method , setter , js_class = "IDBDatabase" , js_name = onversionchange)]
+ #[doc = "Setter for the `onversionchange` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn set_onversionchange(this: &IdbDatabase, value: Option<&::js_sys::Function>);
+ #[cfg(feature = "StorageType")]
+ # [wasm_bindgen (structural , method , getter , js_class = "IDBDatabase" , js_name = storage)]
+ #[doc = "Getter for the `storage` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/storage)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `StorageType`*"]
+ pub fn storage(this: &IdbDatabase) -> StorageType;
+ # [wasm_bindgen (method , structural , js_class = "IDBDatabase" , js_name = close)]
+ #[doc = "The `close()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn close(this: &IdbDatabase);
+ #[cfg(feature = "IdbRequest")]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)]
+ #[doc = "The `createMutableFile()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"]
+ pub fn create_mutable_file(this: &IdbDatabase, name: &str) -> Result<IdbRequest, JsValue>;
+ #[cfg(feature = "IdbRequest")]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile)]
+ #[doc = "The `createMutableFile()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"]
+ pub fn create_mutable_file_with_type(
+ this: &IdbDatabase,
+ name: &str,
+ type_: &str,
+ ) -> Result<IdbRequest, JsValue>;
+ #[cfg(feature = "IdbObjectStore")]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)]
+ #[doc = "The `createObjectStore()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`*"]
+ pub fn create_object_store(this: &IdbDatabase, name: &str) -> Result<IdbObjectStore, JsValue>;
+ #[cfg(all(feature = "IdbObjectStore", feature = "IdbObjectStoreParameters",))]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore)]
+ #[doc = "The `createObjectStore()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`, `IdbObjectStoreParameters`*"]
+ pub fn create_object_store_with_optional_parameters(
+ this: &IdbDatabase,
+ name: &str,
+ optional_parameters: &IdbObjectStoreParameters,
+ ) -> Result<IdbObjectStore, JsValue>;
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = deleteObjectStore)]
+ #[doc = "The `deleteObjectStore()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/deleteObjectStore)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"]
+ pub fn delete_object_store(this: &IdbDatabase, name: &str) -> Result<(), JsValue>;
+ #[cfg(feature = "IdbTransaction")]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)]
+ #[doc = "The `transaction()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"]
+ pub fn transaction_with_str(
+ this: &IdbDatabase,
+ store_names: &str,
+ ) -> Result<IdbTransaction, JsValue>;
+ #[cfg(feature = "IdbTransaction")]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)]
+ #[doc = "The `transaction()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"]
+ pub fn transaction_with_str_sequence(
+ this: &IdbDatabase,
+ store_names: &::wasm_bindgen::JsValue,
+ ) -> Result<IdbTransaction, JsValue>;
+ #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)]
+ #[doc = "The `transaction()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"]
+ pub fn transaction_with_str_and_mode(
+ this: &IdbDatabase,
+ store_names: &str,
+ mode: IdbTransactionMode,
+ ) -> Result<IdbTransaction, JsValue>;
+ #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))]
+ # [wasm_bindgen (catch , method , structural , js_class = "IDBDatabase" , js_name = transaction)]
+ #[doc = "The `transaction()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"]
+ pub fn transaction_with_str_sequence_and_mode(
+ this: &IdbDatabase,
+ store_names: &::wasm_bindgen::JsValue,
+ mode: IdbTransactionMode,
+ ) -> Result<IdbTransaction, JsValue>;
+}