Commit 58a84fe9 authored by Paulo V C Medeiros's avatar Paulo V C Medeiros
Browse files

rename: merge_using_attach -> merge_sqlite_dbs

parent d2c9080e
...@@ -17,7 +17,7 @@ done ...@@ -17,7 +17,7 @@ done
input_files_list=`find ${input_files_dir} -type f -name '*.db'` input_files_list=`find ${input_files_dir} -type f -name '*.db'`
echo 'Testing with "ATTACH DATABASE" strategy' echo 'Testing with "ATTACH DATABASE" strategy'
time ./merge_using_attach.py ${input_files_list} -o output_with_attach.db time ./merge_sqlite_dbs.py ${input_files_list} -o output_with_attach.db
echo '' echo ''
echo 'Testing with ".dump" strategy' echo 'Testing with ".dump" strategy'
......
...@@ -31,9 +31,10 @@ def merge_sqlite_dbs(input_files, output_file, overwrite): ...@@ -31,9 +31,10 @@ def merge_sqlite_dbs(input_files, output_file, overwrite):
"Path '%s' exists and is not a regular file" % s(output_file) "Path '%s' exists and is not a regular file" % s(output_file)
) )
############### #######################################################
# Merge files # # Merge files #
############### # Adapted from <https://stackoverflow.com/a/51847823> #
#######################################################
# (a) Initialise output file with the contents of the first input # (a) Initialise output file with the contents of the first input
shutil.copy(input_files[0], output_file) shutil.copy(input_files[0], output_file)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment