home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cppsql.zip / SQLSRC.ZIP / SQLC.H < prev    next >
Text File  |  1992-06-16  |  2KB  |  65 lines

  1. // :H1 SQLC.H : START OF SPECIFICATIONS
  2. //----------------------------------------------------------------------
  3. //
  4. //  Module Name: SQLC.H
  5. //
  6. //  Description: This module interfaces to the SQL database.
  7. //
  8. //  Product Classification:
  9. //    Licensed Materials - Property of IBM
  10. //    This product contains "Restricted Materials of IBM"
  11. //    5696-314 (C) Copyright IBM Corp. 1992
  12. //    All rights reserved.
  13. //    US Government Users Restricted Rights - Use, duplication or
  14. //    disclosure restricted by GSA ADP Schedule Contract with IBM
  15. //    Corp.
  16. //
  17. //  Status: New
  18. //
  19. //  Initial Author: George L. Havens
  20. //
  21. //  Function: This module provides a C interface to the SQL routines
  22. //            required by the SQL object.
  23. //
  24. //  Notes: None.
  25. //
  26. //  Dependencies: This module requires that PORTABLE.H be included.
  27. //                This module requires that SQLDA.H
  28. //
  29. //  Restrictions: List any restrictions that apply to
  30. //                changing, compiling or calling this module
  31. //
  32. //  Compiler: Zortech C++
  33. //
  34. // Change Activity -----------------------------------------------------
  35. //
  36. // $MOD(module) COMP(component) PROD(product): Description...
  37. //
  38. // FLAG  REASON  VERS  DATE  WHO   DESCRIPTION
  39. // ---- -------- ---- ------ ---   -----------
  40. //               V100 920224 GLH : Initial level
  41. //
  42. // END-OF-SPECIFICATIONS -----------------------------------------------
  43.  
  44. #define BIND_FILE "SQLC.BND"
  45.  
  46. SHORT sql_create (CHAR *name, CHAR *comment, CHAR* bind_path, CHAR drive);
  47. SHORT sql_delete (CHAR *name);
  48. SHORT sql_start (VOID);
  49. SHORT sql_stop  (VOID);
  50. SHORT sql_open  (CHAR *name, CHAR use);
  51. SHORT sql_close (VOID);
  52. SHORT sql_dynamic (CHAR *statement);
  53. SHORT sql_desc (CHAR *statement, struct sqlda *var);
  54. SHORT sql_fetch (BOOLEAN beginning, CHAR *statement, struct sqlda *var);
  55. SHORT sql_close_cur (VOID);
  56. SHORT sql_delete_row (CHAR *statement);
  57. SHORT sql_commit (VOID);
  58. SHORT sql_get_pool_size (CHAR *name, USHORT *size);
  59. SHORT sql_set_pool_size (CHAR *name, USHORT size);
  60. SHORT sql_get_log_size (CHAR *name,  USHORT *size);
  61. SHORT sql_set_log_size (CHAR *name, USHORT size);
  62. SHORT sql_get_log_number (CHAR *name, USHORT *primary, USHORT *secondary);
  63. SHORT sql_set_log_number (CHAR *name, USHORT primary, USHORT secondary);
  64. SHORT sql_rollback (VOID);
  65.