GetDutchie / brick

An intuitive way to work with persistent data in Dart

Home Page:https://getdutchie.github.io/brick/#/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

databaseFactoryFfi not save data in local

hortigado opened this issue · comments

Hello, I was testing support for Windows and I see that the sqflite_common_ffi package needs to be installed, I downloaded it along with two more necessary ones. When testing it it works fine but there is a problem. Does not save requests in local storage. I am doing something wrong? Thank you
image

I read that getDatabasesPath() have problems. Then i resolved the problem of this way
image

image

  static void configure(String endpoint) async {
    if (Platform.isWindows) {
      databaseFactory = databaseFactoryFfi;
    }
    _singleton = Repository._(endpoint, databaseFactory);
  }