IDBDatabase
Overview
The IDBDatabase interface of the IndexedDB API provides a connection to a database; you can use an IDBDatabase object to open a transaction on your database then create, manipulate, and delete objects (data) in that database. The interface provides the only way to get and manage versions of the database.
Location
- Reference: Island.fx
- Namespace: RemObjects.Elements.WebAssembly.DOM
- Platforms: WebAssembly
createMutableFile
Creates a file handle, allowing files to be stored inside an IndexedDB database.
method createMutableFile: File
File createMutableFile()
func createMutableFile() -> File
File createMutableFile()
Function createMutableFile() As File
createObjectStore
Creates and returns a new object store or index.
method createObjectStore(parname: dynamic; paroptionalParameters: dynamic): dynamic
dynamic createObjectStore(dynamic parname, dynamic paroptionalParameters)
func createObjectStore(_ parname: dynamic, _ paroptionalParameters: dynamic) -> dynamic
dynamic createObjectStore(dynamic parname, dynamic paroptionalParameters)
Function createObjectStore(parname As dynamic, paroptionalParameters As dynamic) As dynamic
Parameters:
- parname:
- paroptionalParameters:
deleteObjectStore
Destroys the object store with the given name in the connected database, along with any indexes that reference it.
method deleteObjectStore(parname: dynamic): dynamic
dynamic deleteObjectStore(dynamic parname)
func deleteObjectStore(_ parname: dynamic) -> dynamic
dynamic deleteObjectStore(dynamic parname)
Function deleteObjectStore(parname As dynamic) As dynamic
Parameters:
- parname:
name
property name: String read;
String name { get; }
var name: String { get{} }
String name { __get; }
ReadOnly Property name() As String
objectStoreNames
property objectStoreNames: String read;
String objectStoreNames { get; }
var objectStoreNames: String { get{} }
String objectStoreNames { __get; }
ReadOnly Property objectStoreNames() As String
transaction
Immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store. Runs in a separate thread.
method transaction(storeNames: dynamic; mode: dynamic): dynamic
dynamic transaction(dynamic storeNames, dynamic mode)
func transaction(_ storeNames: dynamic, _ mode: dynamic) -> dynamic
dynamic transaction(dynamic storeNames, dynamic mode)
Function transaction(storeNames As dynamic, mode As dynamic) As dynamic
Parameters:
- storeNames:
- mode:
version
name
property name: String read;
String name { get; }
var name: String { get{} }
String name { __get; }
ReadOnly Property name() As String
objectStoreNames
property objectStoreNames: String read;
String objectStoreNames { get; }
var objectStoreNames: String { get{} }
String objectStoreNames { __get; }
ReadOnly Property objectStoreNames() As String
version
createMutableFile
Creates a file handle, allowing files to be stored inside an IndexedDB database.
method createMutableFile: File
File createMutableFile()
func createMutableFile() -> File
File createMutableFile()
Function createMutableFile() As File
createObjectStore
Creates and returns a new object store or index.
method createObjectStore(parname: dynamic; paroptionalParameters: dynamic): dynamic
dynamic createObjectStore(dynamic parname, dynamic paroptionalParameters)
func createObjectStore(_ parname: dynamic, _ paroptionalParameters: dynamic) -> dynamic
dynamic createObjectStore(dynamic parname, dynamic paroptionalParameters)
Function createObjectStore(parname As dynamic, paroptionalParameters As dynamic) As dynamic
Parameters:
- parname:
- paroptionalParameters:
deleteObjectStore
Destroys the object store with the given name in the connected database, along with any indexes that reference it.
method deleteObjectStore(parname: dynamic): dynamic
dynamic deleteObjectStore(dynamic parname)
func deleteObjectStore(_ parname: dynamic) -> dynamic
dynamic deleteObjectStore(dynamic parname)
Function deleteObjectStore(parname As dynamic) As dynamic
Parameters:
- parname:
transaction
Immediately returns a transaction object (IDBTransaction) containing the IDBTransaction.objectStore method, which you can use to access your object store. Runs in a separate thread.
method transaction(storeNames: dynamic; mode: dynamic): dynamic
dynamic transaction(dynamic storeNames, dynamic mode)
func transaction(_ storeNames: dynamic, _ mode: dynamic) -> dynamic
dynamic transaction(dynamic storeNames, dynamic mode)
Function transaction(storeNames As dynamic, mode As dynamic) As dynamic
Parameters:
- storeNames:
- mode: