joost 6af0ccfdbd Merged revisions 4000,4002,4007-4010 via svnmerge from il y a 19 ans
..
alisttables.pp ecc8ef0c5f Merged revisions 1780-1783,1800 via svnmerge from il y a 20 ans
bcreatetable.pp ae38848307 Merged revisions 2556-2558,2604,2630-2631,2635,2638,2640,2649,2657,2660-2664,2678,2706,2719-2720,2724,2746-2750,2759,2761,2767-2768,2776-2777,2787 via svnmerge from il y a 19 ans
cfilltable.pp ae38848307 Merged revisions 2556-2558,2604,2630-2631,2635,2638,2640,2649,2657,2660-2664,2678,2706,2719-2720,2724,2746-2750,2759,2761,2767-2768,2776-2777,2787 via svnmerge from il y a 19 ans
database.ini 6af0ccfdbd Merged revisions 4000,4002,4007-4010 via svnmerge from il y a 19 ans
dshowtable.pp ecc8ef0c5f Merged revisions 1780-1783,1800 via svnmerge from il y a 20 ans
efilltableparams.pp ae38848307 Merged revisions 2556-2558,2604,2630-2631,2635,2638,2640,2649,2657,2660-2664,2678,2706,2719-2720,2724,2746-2750,2759,2761,2767-2768,2776-2777,2787 via svnmerge from il y a 19 ans
fedittable.pp d3b22205fb Merged revisions 3119,3288,3308-3309,3362,3364,3381,3415,3458,3463,3469,3536,3548-3549,3657,3670,3672,3680,3683,3688 via svnmerge from il y a 19 ans
gfiltertable.pp 3695910a4e Merged revisions 3772-3773,3779,3793,3804,3826,3829 via svnmerge from il y a 19 ans
readme.txt c750a91da2 Merged revisions 1204-1207 via svnmerge from il y a 20 ans
sqldbexampleunit.pp ae38848307 Merged revisions 2556-2558,2604,2630-2631,2635,2638,2640,2649,2657,2660-2664,2678,2706,2719-2720,2724,2746-2750,2759,2761,2767-2768,2776-2777,2787 via svnmerge from il y a 19 ans

readme.txt


In this directory you can find some examples for SQLdb. They can also be used
to test functionality and new connections.

To use these examples you need a working login to a DB-Server and have the
appropiate client installed. You have to change 'database.ini' to work with the
right database-engine and login-credentials.

You can check if everything works fine by compiling & running 'alisttables'. If
everything works well, you'll get a list of all tables in the database provided
in database.ini.

I suggest to compile and run the examples in this order:

alisttables.pp - shows all tables in the current database
bcreatetable.pp - creates the 'fpdev' table, if it doesn't exist already
cfilltable.pp - populates the fpdev table with one record
dshowtable.pp - shows all records in the fpdev table
efilltableparams.pp - add more entries to fpdev, first with and then without
using parameters (use dshowtable again to see the results)
fedittable - edits the first record, and adds another one, without
using update/insert-queries. (dshowtable to see results)
gfiltertable - shows how to use filtering

As you can see all programs start with a letter in alphabetical order.

I think that these examples could be used to write some sort of SQLdb tutorial,
but i don't have time to do that myself. So if someone is interested... Be my
guest.


Joost van der Sluis, 26-sept-2005