--- alx-src/trunk/alxconfig-ng/functions/mysqlfunctions 2005/10/09 21:31:54 343 +++ alx-src/trunk/alxconfig-ng/functions/mysqlfunctions 2005/10/09 21:32:33 344 @@ -6,9 +6,10 @@ # # Niels Rogalla # -# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/mysqlfunctions,v 1.7 2005-08-18 08:13:49 niro Exp $ +# $Header: /home/cvsd/alx-cvs/alx-src/alxconfig-ng/functions/mysqlfunctions,v 1.8 2005-10-09 21:32:33 niro Exp $ -mysql_command(){ +mysql_command() +{ local SQL_USER local SQL_PASS @@ -49,7 +50,8 @@ return 0 } -mysql_enum_colums(){ +mysql_enum_colums() +{ local SQL_USER local SQL_PASS local SQL_HOST @@ -105,7 +107,8 @@ [ "${SHOWTABLES}" == true ] || echo "${i}" } -beep3x() { +beep3x() +{ echo -en "\a" sleep 0.7 echo -en "\a" @@ -134,3 +137,14 @@ return 1 ) } + +mysqldo() +{ + mysql_command \ + "${SQL_USER}" \ + "${SQL_PASS}" \ + "${SQL_HOST}" \ + "${SQL_DB}" \ + "$@" \ + && return 0 || return 1 +}