Object Base Database Access

From: Date: Thu, 28 Feb 2002 06:25:51 +0000
Subject: Object Base Database Access
Groups: php.db 
Request: Send a blank email to php-db+get-17348@lists.php.net to get a copy of this message
Hi folks, i'm currently developing an module which provides an object based access to databases content (does not mean that i use OOP) for example we have defined an class descriptor for "person", which specifies, that an person-record consists of the fields ID (which is the OID, fetched from sequence person_seq), mtime (which is also the mtime field and so touched when updating the record), firstname, lastname, ... then we can fetch the whole person record i.e. with: $person = obj_find ( "person", array ( ID => 12 ) ); $person now contains an array with the person record in the form array ( OID => 12, mtime => "2002-02-28 07:23:00", firstname => "douglas", lastname => "adams" ) you can also update whole objects (or some single fields) of the record or query multiple ones ... well, i'm not really good in explaining the stuff, so please ask me if you've got some questions. ~-n -- Enrico Weigelt == meTUX IT services software development, IT service, internet security solutions www: http://www.metux.de/ phone: +49 36207 519931 email: contact@metux.de cellphone: +49 174 7066481

« previous php.db (#17348) next »