-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db_info_subcommands: handle more tables
Problem: The export-db and pop-db commands only handle a couple of columns from just the association_table and bank_table. These commands would be more robust if they included export and import support from all of the tables. Restructure the export_db_info() function to return data from *all* of the tables in the flux-accounting DB into separate .csv files, labeled with their table names in the database. Restructure the populate_db() function to handle populating any of the tables in the flux-accounting DB with a corresponding .csv file. Add an optional argument to the function to allow the user to specify which columns to include from the file when populating the table.
- Loading branch information
Showing
3 changed files
with
107 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters