Revision 9152
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/db.sh | ||
---|---|---|
73 | 73 |
(echo "SET sql_mode = 'ANSI';"; cat)|mysql "$@" |
74 | 74 |
} |
75 | 75 |
|
76 |
mysql_export_outfile()
|
|
76 |
mysql_export() # does not support CSV
|
|
77 | 77 |
{ |
78 | 78 |
echo_func |
79 |
mk_select |
|
80 |
|
|
81 |
output_data=1 mysql_ANSI "$@" <<<"$query" |
|
82 |
} |
|
83 |
|
|
84 |
mysql_export_outfile() # supports CSV, but requires the FILE privilege |
|
85 |
{ |
|
86 |
echo_func |
|
79 | 87 |
: "${file:?}" |
80 | 88 |
mk_select |
81 | 89 |
local mysql_load_data_format="${mysql_load_data_format-\ |
Also available in: Unified diff
lib/sh/db.sh: added mysql_export(). documented that mysql_export_outfile() supports CSV, but requires the FILE privilege.