
\usemodule[mysql]

\setupMySQL[Host=tullamore,
	    User=taco,
	    Password=,
	    Database=test,
            %Executable=mysql,
            %Countexecutable=wc -l,
 ]

\def\printlist#1{\message{#1}}

\startMySQL[Users]
SELECT * from tst;
\stopMySQL

\starttext
	
\executeMySQL[Users]

\dorecurse{\MySQLcolumns}{
	\message{\getvalue{MySQLcolumnname\recurselevel}}
}

\dorecurse{\MySQLrows}{
  \fetchMySQLhash\userlist
  \processcommacommand[\userlist]\printlist
}

\executeMySQL[Users]

\dorecurse{\MySQLrows}{
  \fetchMySQLarray\userlist
  \processcommacommand[\userlist]\printlist
}

\stoptext