readme.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. In this directory you can find some examples for SQLdb. They can also be used
  2. to test functionality and new connections.
  3. To use these examples you need a working login to a DB-Server and have the
  4. appropiate client installed. You have to change 'database.ini' to work with the
  5. right database-engine and login-credentials.
  6. You can check if everything works fine by compiling & running 'alisttables'. If
  7. everything works well, you'll get a list of all tables in the database provided
  8. in database.ini.
  9. I suggest to compile and run the examples in this order:
  10. alisttables.pp - shows all tables in the current database
  11. bcreatetable.pp - creates the 'fpdev' table, if it doesn't exist already
  12. cfilltable.pp - populates the fpdev table with one record
  13. dshowtable.pp - shows all records in the fpdev table
  14. efilltableparams.pp - add more entries to fpdev, first with and then without
  15. using parameters (use dshowtable again to see the results)
  16. fedittable - edits the first record, and adds another one, without
  17. using update/insert-queries. (dshowtable to see results)
  18. gfiltertable - shows how to use filtering
  19. As you can see all programs start with a letter in alphabetical order.
  20. I think that these examples could be used to write some sort of SQLdb tutorial,
  21. but i don't have time to do that myself. So if someone is interested... Be my
  22. guest.
  23. Joost van der Sluis, 26-sept-2005