Commit 2ece0d3a authored by Kirill Smelkov's avatar Kirill Smelkov Committed by Kirill Smelkov

mdb-astextplain: Набросок утилиты для дампа .mdb'шного файла

parent 219e7dd1
#!/bin/sh -e
# dump an .mdb in astextplain style
mdbfile="$1"
tabfile=`mktemp -t mdb-astextplain.XXXXXX`
# list tables without temporary ones
mdb-tables -1 "$mdbfile" | grep -v "^~TMP" >$tabfile
# for each table dump its schema and content
for tab in `cat $tabfile` ; do
mdb-schema -T $tab $mdbfile | grep -v '^--'
echo "----8<----"
mdb-export -Q -d '|' $mdbfile $tab
echo "----8<----"
done
application/msaccess; mdb-astextplain '%s'; copiousoutput
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