Project

General

Profile

« Previous | Next » 

Revision 8866

lib/util.sh: added mysqldump () wrapper, which does what my2pg_export does, but integrates with mysql_cmd and allows turning off postgres-compatible mode

View differences:

lib/util.sh
211 211
	(echo "SET sql_mode = 'ANSI';"; cat)|mysql "$@"
212 212
}
213 213

  
214
mysqldump () # usage: [schema=1 | data=1] mysqldump db [table...]
215
{
216
	echo_func "$@"
217
	mysql_cmd --quick --lock-tables=false --set-charset \
218
${postgres_compat:+--compatible=postgresql --add-locks=false }\
219
${schema:+--no-data }${data:+--no-create-info }"$@"
220
}
221

  
214 222
### PostgreSQL
215 223

  
216 224
pg_copy_to ()

Also available in: Unified diff