README 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. Hello again
  2. with new version of Interbase objects suite
  3. slightly changes the work with it. Main change
  4. is TIBTransaction object, which overtake transaction
  5. handling from TIBDatabase. TIBDataset no longer exists,
  6. instead of it is TIBQuery now. Work with it is (I think)
  7. shown in testib.pp program.
  8. TIBTransaction has several methods for committing and
  9. rollback of changes made to database.
  10. Commit, Rollback : classic action taken, both methods
  11. ENDS transaction.
  12. CommitRetaining, RollbackRetaining : these methods
  13. both do as same as Commit or Rollback, but environment
  14. of transaction remains, so you don't need start new
  15. transaction. This can be of use for frequent changes
  16. to database, because it's faster than classic
  17. Commit|Rollback & StartTransaction.
  18. In short:
  19. * Create TIBDatabase
  20. * Create TIBTransaction
  21. * Assign transaction to database
  22. * Create TIBQuery
  23. * Execute query
  24. * Commit or rollback transaction, in short, end transaction
  25. * Close TIBDatabase
  26. Compiling:
  27. Simply type 'make' for building interbase unit, if you wanna
  28. test program type 'make examples'. For successfull compiling
  29. you must have Interbase server installed, or you must have
  30. libgds.so.* in ldpath. If linker shows errors like:
  31. /usr/lib/libgds.so: undefined reference to `dlclose'
  32. /usr/lib/libgds.so: undefined reference to `dlopen'
  33. /usr/lib/libgds.so: undefined reference to `crypt'
  34. /usr/lib/libgds.so: undefined reference to `dlsym'
  35. testib.pp(92,1) Warning: Error while linking
  36. you must to program source add compiler directives
  37. {$ifndef BSD} // BSD has libdl in libc
  38. {$linklib dl}
  39. {$endif}
  40. {$linklib crypt}
  41. and all should be OK. For running testib you must have
  42. testing database created. To create it, edit mkdb script,
  43. set variable ISQL to full path to isql program (it is
  44. set to /opt/interbase/bin/isql by default, which will work
  45. on most systems) and run by typing 'sh mkdb'.
  46. This units was built and tested on Linux, and I don't
  47. know, if you can build it on Win32 or Dos platform.
  48. Anyway, if you want to use it under windoze, you can
  49. port it ;)
  50. Volunteers, testers, suggestions etc. are always welcome,
  51. mailto address below
  52. Pavel Stingl
  53. [email protected]