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