You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20fe72e225 | 8 years ago | |
---|---|---|
README.md | 8 years ago | |
mergeScript.py | 8 years ago | |
testDB_1.db | 8 years ago | |
testDB_2.db | 8 years ago |
README.md
Database-Merging-SQLite3
This repository contains a Python script to merge SQLite database files. Databases should have identical tables and identical schemas of the tables. Data entries in the databases can be different, or identical. -Databases with mismatched tables will most likely NOT merge. -Databases that share the same table names, but with different column names/types will most likely NOT merge.
Instructions
- Make sure that you have Python 3.5.* installed.
- Make sure that the script and the databases you wish to merge are all in the same folder.
- Open the Python script, "mergeScript.py" in a text editor.
- Navigate to the section of code labeled, "Input Parameters".
- Change the value of the variable, "mainDB" with the name of your main database and its file extension. The value must be wrapped in quotes.
- Add the names of the other databases to merge into the list variable titled, "otherDBs". Make sure that the values are wrapped in quotes and are comma separated.
- Open up the Python terminal and run the script.