Skip to main content

web_sys/features/
gen_IdbFactory.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "IDBFactory",
10        typescript_type = "IDBFactory"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `IdbFactory` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"]
18    pub type IdbFactory;
19    #[wasm_bindgen(catch, method, js_class = "IDBFactory")]
20    #[doc = "The `cmp()` method."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/cmp)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"]
25    pub fn cmp(
26        this: &IdbFactory,
27        first: &::wasm_bindgen::JsValue,
28        second: &::wasm_bindgen::JsValue,
29    ) -> Result<i16, JsValue>;
30    #[cfg(feature = "IdbOpenDbRequest")]
31    #[wasm_bindgen(catch, method, js_class = "IDBFactory", js_name = "deleteDatabase")]
32    #[doc = "The `deleteDatabase()` method."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"]
37    pub fn delete_database(this: &IdbFactory, name: &str) -> Result<IdbOpenDbRequest, JsValue>;
38    #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))]
39    #[wasm_bindgen(catch, method, js_class = "IDBFactory", js_name = "deleteDatabase")]
40    #[doc = "The `deleteDatabase()` method."]
41    #[doc = ""]
42    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"]
43    #[doc = ""]
44    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbOptions`, `IdbOpenDbRequest`*"]
45    #[deprecated]
46    pub fn delete_database_with_options(
47        this: &IdbFactory,
48        name: &str,
49        options: &IdbOpenDbOptions,
50    ) -> Result<IdbOpenDbRequest, JsValue>;
51    #[cfg(feature = "IdbOpenDbRequest")]
52    #[wasm_bindgen(catch, method, js_class = "IDBFactory")]
53    #[doc = "The `open()` method."]
54    #[doc = ""]
55    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"]
56    #[doc = ""]
57    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"]
58    pub fn open(this: &IdbFactory, name: &str) -> Result<IdbOpenDbRequest, JsValue>;
59    #[cfg(feature = "IdbOpenDbRequest")]
60    #[wasm_bindgen(catch, method, js_class = "IDBFactory", js_name = "open")]
61    #[doc = "The `open()` method."]
62    #[doc = ""]
63    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"]
64    #[doc = ""]
65    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"]
66    pub fn open_with_u32(
67        this: &IdbFactory,
68        name: &str,
69        version: u32,
70    ) -> Result<IdbOpenDbRequest, JsValue>;
71    #[cfg(feature = "IdbOpenDbRequest")]
72    #[wasm_bindgen(catch, method, js_class = "IDBFactory", js_name = "open")]
73    #[doc = "The `open()` method."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"]
78    pub fn open_with_f64(
79        this: &IdbFactory,
80        name: &str,
81        version: f64,
82    ) -> Result<IdbOpenDbRequest, JsValue>;
83    #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))]
84    #[wasm_bindgen(catch, method, js_class = "IDBFactory", js_name = "open")]
85    #[doc = "The `open()` method."]
86    #[doc = ""]
87    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"]
88    #[doc = ""]
89    #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbOptions`, `IdbOpenDbRequest`*"]
90    #[deprecated]
91    pub fn open_with_idb_open_db_options(
92        this: &IdbFactory,
93        name: &str,
94        options: &IdbOpenDbOptions,
95    ) -> Result<IdbOpenDbRequest, JsValue>;
96}