Skip to content

Reuse of the models with offline databases  #2080

Closed

Description

@steinmetz

Can the generated models by Serverpod be used with local databases such as Isar or Hive?

In a scenario, there is no internet on my phone, and I need to save data locally and sync later, I currently save it on an Isar database, which also has a class to represent models.

Is it possible that Isar and Serverpod use the same model classes? or should there be one model for each database and implement a converter (UserModelIsar and UserModelServerpod)?

Or is there already a solution for handling offline-first scenarios that I am not aware of?

Thank you!

Activity

  1. changed the title [-]Support for offline first app?[/-] [+]Support for offline-first app?[/+] on Mar 29, 2024
  2. changed the title [-]Support for offline-first app?[/-] [+]Reuse of the models with offline databases [/+] on Apr 2, 2024
  3. locked and limited conversation to collaborators on Apr 9, 2024
  4. converted this issue into a discussion #2118 on Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions