Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easier api to use and support for sqlite #1149

Open
gitzhan opened this issue Nov 30, 2023 · 1 comment
Open

Easier api to use and support for sqlite #1149

gitzhan opened this issue Nov 30, 2023 · 1 comment
Assignees
Labels
type: r2dbc waiting-for-triage An issue we've not yet triaged

Comments

@gitzhan
Copy link

gitzhan commented Nov 30, 2023

Use case

It was a surprise to find this supported r2dbc‘s’ library! thanks a lot to author!

I'm a developer for android & desktop by compose-multiplatform (sometime also use kotlin to coding server side).
In android and desktop case, the database used by sqlite.

Describe the solution you'd like

1、Very much looking forward to a sqlite library that supports r2dbc

2、Can the current database api be more streamlined and easy to use。
for select some data,Need to call like this
Current:
val result = database.runQuery {
QueryDsl.from(metamodel).where { someConditions }
}
Expect such as (Some solutions for Reduced call level by ksp):
val result = database.select(metamodelHolder).where { someConditions }
The usage idea comes from ktorm's sql dsl the one I'm currently using,but this lib has no plan to supported r2dbc(which feature I've been looking forward for a long long time)

@gitzhan gitzhan added the waiting-for-triage An issue we've not yet triaged label Nov 30, 2023
@nakamura-to
Copy link
Member

Thank you for your interest in Komapper.

1、Very much looking forward to a sqlite library that supports r2dbc

Komapper is an OR mapper that utilizes JDBC/R2DBC drivers.
Are you aware of any stable R2DBC drivers for SQLite?

2、Can the current database api be more streamlined and easy to use

Ktorm's style needs intermediate operations and terminal operations.
Those operations make it difficult to understand when SQL is issued, which can be a source of trouble.
The code in Komapper might seem verbose, but it makes clear when SQL is issued.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: r2dbc waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

2 participants