You get no guarantees whatsoever that the database schema actually contains this information.
Some databases are set up with validation rules that an external tool can understand, that column FOO.BAR_ID represents a foreign key for column BAR.ID
But some databases (for example mine) have no such rules and depend on the developers to know this through documentation or occult consultation with the spirits of departed coworkers.
You get no guarantees whatsoever that the database schema actually contains this information.
Some databases are set up with validation rules that an external tool can understand, that column FOO.BAR_ID represents a foreign key for column BAR.ID
But some databases (for example mine) have no such rules and depend on the developers to know this through documentation or occult consultation with the spirits of departed coworkers.