Skip to content

Using Kotlin Exposed - ORM layer #235

@Retirement-App

Description

@Retirement-App

Hi there.

So I'm aware that for the time being, we need to use raw SQL code to interact with the Powersync database locally. I also understand that the Powersync sdk itself, is not 100% kotlin. I'm aware of an engine being made recently being designed in Rust (I'd love to take a look at it if that is open source?). But at the end of the day, it shouldn't matter since it's multiplatform.

So I was wondering, are there any limitations to making use of a pre-existing ORM framework like Kotlin Exposed? I know that the focus of this sdk is to be platform agnostic, hence why it's for multiple platforms (KMP). So choosing something like Kotlin Exposed in my head sounds like a good choice in this direction. Also, it (appears) that a dedicated ORM framework might make things easier, then it's not like you have to code your own plugins, compile-time inspections etc.

I also come from Android Rooms, so I very much miss the ORM approach to interacting with the Sqlite database (perhaps now it's time to take the training wheels off), but using an ORM feels a lot more standard and safer. But I do understand that too many frameworks and tools could ruin it with more gears to keep track of.

Not a request, but purely curious as to the tradeoffs one would face, and to what extent the possibility it would be to implement that as the bridge between the kotlin developer and the synchronized Sqlite database.

Thank you for reading.

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