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

Added migration sub command #1

Merged
merged 3 commits into from
Dec 19, 2024
Merged

Added migration sub command #1

merged 3 commits into from
Dec 19, 2024

Conversation

colodenn
Copy link
Member

@colodenn colodenn commented Dec 19, 2024

This change adds a new ronin migration sub command, which can be used to migrate the schema of a database.

Copy link

linear bot commented Dec 19, 2024

RON-1071 Ship "The Package", containing a portable version of RONIN

As the first major step towards making our entire product portable (meaning making it possible for people to actually "hold RONIN in their hands"), we would like to open-source a package named ronin, which effectively matches the programmatic signature of the current ronin package, except that the following must be ensured:

At the moment, RONIN only runs in the cloud, with the client being the main entry point into the cloud, since it serializes queries and sends them away, after which it receives a list of results to return from the client package.

Instead of requiring this interaction with the cloud, we would like to make it possible to run RONIN entirely standalone, such that anybody can run a RONIN database in the test suite of their application, in their migration script while testing changes, in a stateful application that would subscribe to the cloud version of RONIN, a local Electron app, or similar.

To accomplish this, we need to tackle all issues in Open-Source Data Layer, such that we can ultimately release a ronin package that imports the following logic pieces:

  • The logic for converting RONIN queries into SQL statements.
  • The logic for executing those SQL statements (the data layer).
  • The logic for converting the response of the data layer into usable records.

Furthermore, the package must expose programmatic functions for updating the schema definitions of a local database, such that all actions (regardless of whether a developer wants to query data or modify schemas) can be taken through the client package.

Copy link

github-actions bot commented Dec 19, 2024

Released an experimental package:

bun add @ronin/cli@corny-ron-1071-experimental-4

This package will be removed after the pull request has been merged.

@leo leo self-requested a review December 19, 2024 12:22
@leo leo added the enhancement New feature or request label Dec 19, 2024
@colodenn colodenn marked this pull request as ready for review December 19, 2024 14:13
@leo leo merged commit c83dc76 into main Dec 19, 2024
3 checks passed
@leo leo deleted the corny/ron-1071 branch December 19, 2024 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants