-
Notifications
You must be signed in to change notification settings - Fork 32
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
[wip] Add a new endpoint /sqldump, exporting the data for the current modules #8
base: master
Are you sure you want to change the base?
Conversation
main.v
Outdated
@@ -56,6 +57,11 @@ pub fn (app mut App) new() { | |||
$vweb.html() | |||
} | |||
|
|||
pub fn (app mut App) sqldump() { | |||
sql := os.exec('pg_dump vpm --table=modules --no-password --username=admin') or { return } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As useful as this is, what if the user's db is not named vpm
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already hardcoded in main.v . We can change it here and there to make it use env variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that would be much better.
@spytheman is this still valid or should be closed? |
This enables easier onboarding of contributors (they can test their
changes locally using real data).
[wip] It also adds a README with a short description about what you need to do to start working on the vpm codebase locally.