Skip to content

Commit

Permalink
feat: import export bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian ALEXANDRE committed Jul 9, 2024
1 parent f47ff76 commit fc127e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/ImportExportBundle/bin/mdb-to-sqlite.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "Starting conversion in ${tmp_dir}"
mkdir -p $tmp_dir
mdb-schema $mdb_path sqlite > ${tmp_dir}/schema.sql
mkdir -p ${tmp_dir}/sql
for i in $( mdb-tables $mdb_path ); do mdb-export -D "%Y-%m-%d %H:%M:%S" -H -I sqlite $mdb_path $i > ${tmp_dir}/sql/$i.sql; done
for i in $( mdb-tables $mdb_path ); do mdb-export --quote="'" -D "%Y-%m-%d %H:%M:%S" -H -I sqlite $mdb_path $i > ${tmp_dir}/sql/$i.sql; done
cat ${tmp_dir}/schema.sql | sqlite3 $sqlite_path
for f in ${tmp_dir}/sql/* ; do (echo 'BEGIN;'; cat $f; echo 'COMMIT;') | sqlite3 $sqlite_path; done
rm -rf $tmp_dir

0 comments on commit fc127e7

Please sign in to comment.