home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume18 / oraperl / part01 / oraperl.ref < prev    next >
Encoding:
Text File  |  1991-04-11  |  1.4 KB  |  61 lines

  1. .\"    Quick reference sheet for OraPerl
  2. .\"
  3. .nf
  4. .\"
  5. .ps 10
  6. \fBOraperl Quick Reference\fP
  7. .ps 8
  8. .sp 2
  9. .ps 10
  10. \fBOraperl Functions\fP
  11. .ps 8
  12. .in +2m
  13. .sp
  14. .ti -2m
  15. \fB$lda = &ora_login($database, $name, $password)\fP
  16. Logs into the specified database with the name and password given.
  17. Returns an \fIlda\fP for use with \fIora_open()\fP.
  18. .sp
  19. .ti -2m
  20. \fB$csr = &ora_login($lda, $statement)\fP
  21. Executes the given SQL statement in the database identified by $lda.
  22. Returns a \fIcsr\fP for use with \fIora_fetch()\fP.
  23. .sp
  24. .ti -2m
  25. \fB$n = &ora_fetch($csr)\fP
  26. Returns the number of fields available from the query.
  27. .sp
  28. .ti -2m
  29. \fB@ary = &ora_fetch($csr)\fP
  30. Retrieves the (next) output data from the statement identified by $csr.
  31. .sp
  32. .ti -2m
  33. \fB&ora_close($csr)\fP
  34. Finishes the SQL statement identified by $csr.
  35. .sp
  36. .ti -2m
  37. \fB&ora_logoff($lda)\fP
  38. Logs out of the database identified by $lda.
  39. .ti -2m
  40. .sp 2
  41. .ps 10
  42. \fBOraperl Variables\fP
  43. .sp
  44. .ps 8
  45. .ti -2m
  46. \fB$ora_errno\fP  (read only)
  47. Contains the error code from the last funtion call.
  48. .sp
  49. .ti -2m
  50. \fB$ora_errstr\fP  (read only)
  51. Contains the error message corresponding to $ora_errno.
  52.  
  53. .ti -2m
  54. \fB$ora_debug\fP  (if debugging is enabled)
  55. Contains the debugging flags for \fIOraperl\fP.
  56. May be set by a program to debug only certain parts of the script.
  57. The following flags are meaningful:
  58. .ta 5m
  59. \0\08    report function entry and exit
  60. 128    report use of malloc and free
  61.