79159450

Date: 2024-11-05 14:18:38
Score: 1
Natty:
Report link

Replying to @harrie-pieters

If you look at the documentation, https://docs.expo.dev/versions/latest/sdk/sqlite/, there is no longer openDatabase only SQLite.openDatabaseSync (and SQLite.openDatabaseAsync). So my guess is changing openDatabase to openDatabaseSync should solve the issue (untested though).

import * as SQLite from 'expo-sqlite';

// overwrite the `openDatabase()`
SQLite.openDatabase = SQLite.openDatabaseSync;

However this continues to call problem because the openDatabaseSync() and openDatabaseAsync() return type also does not match the typeorm driver spec. I get databaseConnection.transaction is not a function (it is undefined)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @harrie-pieters
  • Low reputation (1):
Posted by: theblockstalk