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

Migrate database implementation to SqlDelight #11

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

kirillzh
Copy link
Contributor

@kirillzh kirillzh commented Jun 26, 2024

Expose is a JVM only lib. SqlDelight provides KMP support out of the box.
This migrates the internal db implementation to SqlDelight.

Work towards resolving issue #3.

@kirillzh kirillzh mentioned this pull request Jun 26, 2024
@kirillzh kirillzh force-pushed the zhukov/sqldelight branch from db51e82 to dc331f7 Compare June 26, 2024 05:33
Copy link
Owner

@thunderbiscuit thunderbiscuit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I'm glad to be working with SQLDelight, which I don't know as much about as I should. Also thanks for the new tests!

Two little things:

  • a quick rebase should remove the need for commit 20cf213 (the one that bumps the Java version).
  • I'd like to add KDocs for at least the db interface

Otherwise looks good!

@thunderbiscuit
Copy link
Owner

thunderbiscuit commented Jun 27, 2024

@kirillzh I'm not sure if I have the correct Discord username for you, but I tried sending you a message there so we can chat more easily (let me know if you didn't receive anything and I just sent a message to a rando!)

I also wanted to know if you had seen the Kotlin Bitcoin Tools Org. It only has 2 public repos so far, but they have similar goals to this cashu library (KMP-compatible, well documented, well tested, etc.). I have a working Unified Resources library there, which you need to read fountain QR codes as per NUT-16. This is where this library would move to if it ever becomes a bit more production-ready. Anyway just letting you know so more Kotlin devs know about it!

Expose is a JVM only lib. SqlDelight provides KMP support out of the box.

This migrates the internal db implementation to SqlDelight.

Work towards resolving issue #3.
@kirillzh kirillzh force-pushed the zhukov/sqldelight branch from dc331f7 to 9748a37 Compare June 29, 2024 06:16
@kirillzh kirillzh requested a review from thunderbiscuit June 29, 2024 06:17
@thunderbiscuit thunderbiscuit merged commit dc44007 into thunderbiscuit:master Jun 29, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants