openDatabase
Unofficial
Open or create a WebSQL database.
Signature:
function openDatabase(name: string, version: string, displayName: string, estimatedSize: number, creationCallback?: (database: Database) => void): DatabaseParameters:
| Parameter | Type | Description |
|---|---|---|
name |
string | The name of the database. |
version |
string | The version of the database. |
displayName |
string | The display name of the database. |
estimatedSize |
number | The estimated size of the database in bytes. |
creationCallback? |
(database: Database) => void | Optional callback invoked when the database is created. |
Returns: Database — The opened or created database.