List attribute primary key , index key , foreign key

All about the Doxygen documentation for Zeoslib.
Links to the downloads and online version.

Moderators: gto, bravecobra

Post Reply
lavoro92
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 23.03.2011, 16:32

List attribute primary key , index key , foreign key

Post by lavoro92 »

How to get List of primary key , index key and foreign key and relative property( for example the external table reference for the foiregn key) throught Zeoslib components?
tintinux
Junior Boarder
Junior Boarder
Posts: 44
Joined: 19.05.2010, 10:39

Post by tintinux »

Hi

I think it is possible only by querying the information schema, and depends on the database and it's release.

I made something working for MySql 5, if you are interested.

Regards
Tintinux
lavoro92
Fresh Boarder
Fresh Boarder
Posts: 7
Joined: 23.03.2011, 16:32

Post by lavoro92 »

Are there other methods that do this ?
I prefer use a class method because i want the list of primary key , foreign key , index key for mssql,mysql,postgresql,interbase,firebird,sqllite and oracle dbms .
tintinux
Junior Boarder
Junior Boarder
Posts: 44
Joined: 19.05.2010, 10:39

Post by tintinux »

None, that I know...
You will have an hard work with all these different databases.
It would be really useful to share it.
Buon lavoro !
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Have a look at the TZMetadata component. And maybe the zdbc metadata interfaces may be usefull for you too.

I don't think everything you asked for is available through the TZMetadata component, but maybe on the lower level more is available.

Mark
Image
Post Reply