home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dbutil.zip / BUFOP.ZIP / COMPSQL.HPP < prev    next >
Text File  |  1993-09-11  |  734b  |  30 lines

  1. #ifndef _COMPSQL_
  2. #define _COMPSQL_
  3. #include <istring.hpp>
  4. #include "hostvars.hpp"         // host variables
  5. #include <sqlca.h>
  6. #include <sql.h>
  7. #include <sqlaprep.h>
  8. #include <fstream.h>
  9.  
  10.  
  11. //
  12. // maintain a couple of galactic variables here which is generally not
  13. // a great idea - but then who really cares?
  14. //
  15.  
  16.  
  17. //
  18. //      EXTERNAL INTERFACE FOR SQL COMP STUFF
  19. //
  20.  
  21. void initSQLStuff();
  22. void MSQLError(int lineNbr);  /* monitor error only */
  23. void SQLError(int LineNbr,ofstream & out, Boolean full);
  24. void monitorMessage(IString const & msg);
  25. Boolean IsSQL(IString const & theStr);   // checks if the statement is an SQL command
  26. void prepareSQL(IString & theStmt, ofstream & fout, int lineNbr);
  27.  
  28.  
  29. #endif
  30.