
main.web.idb.IDBFactory.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package web.idb
import js.core.ReadonlyArray
import kotlin.js.Promise
sealed external class IDBFactory {
/**
* Compares two values as keys. Returns -1 if key1 precedes key2, 1 if key2 precedes key1, and 0 if the keys are equal.
*
* Throws a "DataError" DOMException if either input is not a valid key.
*/
fun cmp(
first: Any?,
second: Any?,
): Number
fun databases(): Promise>
/** Attempts to delete the named database. If the database already exists and there are open connections that don't close in response to a versionchange event, the request will be blocked until all they close. If the request is successful request's result will be null. */
fun deleteDatabase(name: String): IDBOpenDBRequest
/** Attempts to open a connection to the named database with the current version, or 1 if it does not already exist. If the request is successful request's result will be the connection. */
fun open(
name: String,
version: Number = definedExternally,
): IDBOpenDBRequest
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy