#!/bin/bash export name=$1 dolt table rm $name dolt schema import -c --pks id $name $name.csv --dry-run > /tmp/dolt_tmp_query.sql $EDITOR /tmp/dolt_tmp_query.sql dolt sql < /tmp/dolt_tmp_query.sql dolt table import -u $name $name.csv