expo-sqlite
Version:
Provides access to a database using SQLite (https://www.sqlite.org/). The database is persisted across restarts of your app.
18 lines • 523 B
JavaScript
/**
* Flattens the SQLiteOpenOptions that are passed to the native module.
*/
export function flattenOpenOptions(options) {
const { libSQLOptions, ...restOptions } = options;
const result = {
...restOptions,
};
if (libSQLOptions) {
Object.assign(result, {
libSQLUrl: libSQLOptions.url,
libSQLAuthToken: libSQLOptions.authToken,
libSQLRemoteOnly: libSQLOptions.remoteOnly,
});
}
return result;
}
//# sourceMappingURL=NativeDatabase.js.map