UNPKG

expo-sqlite

Version:

Provides access to a database that can be queried through a WebSQL-like API (https://www.w3.org/TR/webdatabase/). The database is persisted across restarts of your app.

9 lines 444 B
import { UnavailabilityError } from 'expo-modules-core'; export function openDatabase(name, version = '1.0', description = name, size = 1, callback) { const typedWindow = window; if ('openDatabase' in typedWindow && typedWindow.openDatabase) { return typedWindow.openDatabase(name, version, description, size, callback); } throw new UnavailabilityError('window', 'openDatabase'); } //# sourceMappingURL=SQLite.web.js.map