https://github.com/sdboyer/db_whitelist
A framework for dump-reducing sql for smaller datasets
https://github.com/sdboyer/db_whitelist
Last synced: 4 months ago
JSON representation
A framework for dump-reducing sql for smaller datasets
- Host: GitHub
- URL: https://github.com/sdboyer/db_whitelist
- Owner: sdboyer
- Created: 2014-01-16T18:58:14.000Z (over 11 years ago)
- Default Branch: whitelist
- Last Pushed: 2014-01-16T18:58:53.000Z (over 11 years ago)
- Last Synced: 2025-01-13T17:49:40.371Z (6 months ago)
- Language: Python
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Running the script
==================
./sanitize_db.py
Options:
-h, --help show this help message and exit
-d DESTDB, --dest-db=DESTDB
The name of the database we insert into.
-s SOURCEDB, --src-db=SOURCEDB
The name of the database we select from.
-p DATASET, --data-profile=DATASET
Pick the data profile whitelist overlay. (boss or
skeleton)Setting up a new site
=====================1. Copy the project into a new folder
2. Delete the whitelist file
3. Run the script to get the new schema
4. Put the new schema and put into a new whitelist file
5. Mark tables and columns with ignore and nodata tags
6. Run it and fix the errors in the table_config files
7. Create or update profiles if needed (boss, skeleton)