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

Run on primary API #329

Open
rubys opened this issue Jun 5, 2023 · 0 comments
Open

Run on primary API #329

rubys opened this issue Jun 5, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rubys
Copy link

rubys commented Jun 5, 2023

Create a mechanism to run a shell script (or equivalent) on the primary host and return the results. That could be HTTP POST, write a magic file, whatever.

This proposal could either be a complement or a replacement to the HTTP Query API, and addresses the issue that not only is a full replacement for the sqlite3 gem/npm module/whatever for each language is both a large task and likely an impossible one, but that such would need to be integrated into ORMs for each language to be a full plug-compatible replacement.

For Rails, that script could be bin/rails runner, which would have full access to all that ActiveRecord has to offer, both in terms of a familiar API and functionality. It also gives the application developer full control over checking for pre-conditions given that the database may have changed from when the request was made and the request was executed.

@rubys rubys added the enhancement New feature or request label Jun 5, 2023
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

No branches or pull requests

1 participant