Skip to content

feat: add API backing functions#8

Merged
jjhafer merged 1 commit intosilvermine:masterfrom
pmorris-dev:api_backing
Dec 1, 2025
Merged

feat: add API backing functions#8
jjhafer merged 1 commit intosilvermine:masterfrom
pmorris-dev:api_backing

Conversation

@pmorris-dev
Copy link
Copy Markdown
Contributor

@pmorris-dev pmorris-dev commented Nov 28, 2025

  • Consolidated transaction API to address a design flaw
    • Calling BEGIN and then ceding the write conn could
      leave an open transaction dangling
  • Added backing functions to wrapper.rs
  • Added decoder and tests
  • Added tests for error types
  • Remove the idea that an error will throw when
    attempting a RO query with the writer. It's obvious
    from the return type you'll get no query results
  • NOTE: Integration tests and migrations coming soon

@pmorris-dev pmorris-dev force-pushed the api_backing branch 5 times, most recently from 38bb073 to 86dd704 Compare November 30, 2025 14:15
Comment thread src/wrapper.rs Outdated
Comment thread src/wrapper.rs Outdated
Comment thread src/decode.rs Outdated
Copy link
Copy Markdown
Contributor

@velocitysystems velocitysystems left a comment

Choose a reason for hiding this comment

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

Will take a closer look at migrations since this is functionality lifted from Tauri's plugin (as discussed).

Comment thread src/wrapper.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs Outdated
Comment thread src/lib.rs
Comment thread src/wrapper.rs Outdated
- Consolidated transaction API to address a design flaw
  - Calling BEGIN and then ceding the write conn could
     leave an open transaction dangling
- Added backing functions to wrapper.rs
- Added decoder and tests
- Added tests for error types
- Remove the idea that an error will throw when
  attempting a RO query with the writer. It's obvious
  from the return type you'll get no query results
- NOTE: Integration tests and migrations coming soon
@jjhafer jjhafer merged commit 07592a0 into silvermine:master Dec 1, 2025
1 check passed
@pmorris-dev pmorris-dev deleted the api_backing branch December 1, 2025 18:09
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.

3 participants