#ifndef _SQL_H
#define _SQL_H

#ifdef SQL
#include <msql.h>

#define NULLSQLRESULT ((m_result *)0)


int dosql (int argc, char *argv[], void *p);
void sql_init (void);
int sql_open (char *dbname);
void sql_error (void);
void sql_close (int sock);
void sql_endquery (m_result *result);
m_result *sql_run (int sock, char *query);
void sql_printheader (m_result *result);
void sql_printresults (m_result *result);
int sql_query (char *query);


#endif /* SQL */

#endif /* _SQL_H */
