open
Opens a database with the recommended implementation.
While the other open methods provide more control over the implementation and storage location (e.g. IndexedDB or OPFS), this is a suitable default and picks a suitable implementation automatically based on available browser features.
suspend fun open(databaseName: String, implementation: DatabaseImplementation): SQLiteConnectionPool(source)
Opens a database with a known DatabaseImplementation.
This should only be used if it's guaranteed that the implementation will be available, as not all implementations are supported on all browsers.
suspend fun open(databaseName: String, pickImplementation: (RawFeatureDetectionResult) -> DatabaseImplementation): SQLiteConnectionPool(source)
Starts a feature detection for available DatabaseImplementations in the current browser, then runs pickImplementation to query with implementation to use.