Geschrieben in PHP-Dokumentation am 12. Januar 2010 0 Kommentare »
PDO_INFORMIX DSN (PECL PDO_INFORMIX >= 0.1.0) PDO_INFORMIX DSN — Connecting to Informix databases Beschreibung The PDO_INFORMIX Data Source Name (DSN) is based on the Informix ODBC DSN string. Details on configuring an Informix ODBC DSN are available from the » Informix Dynamic Server Information Center. The major components of the PDO_INFORMIX DSN are: DSN prefix [...]
Geschrieben in PHP-Dokumentation am 12. Januar 2010 0 Kommentare »
Transaktionen und auto-commit Jetzt, wo Sie via PDO verbunden sind, müssen Sie sich bewusst machen, wie PDO Transaktionen verwaltet, bevor Sie anfangen, Abfragen auszuführen. Falls Sie noch niemit Transaktionen zu tun hatten, diese bieten 4 wichtige Features: Atomizität, Konsistenz (Consistency), Isolation und Dauerhaftigkeit (Durability) (ACID). Einfach gesagt wird alles in einer Transaktion, auch wenn es [...]
Geschrieben in PHP-Dokumentation am 12. Januar 2010 0 Kommentare »
MongoDB::listCollections (PECL mongo >=0.9.0) MongoDB::listCollections — Get a list of collections in this database Beschreibung public array MongoDB::listCollections ( void ) Parameter-Liste Diese Funktion hat keine Parameter. Rückgabewerte Returns a list of MongoCollections. Beispiele Beispiel #1 MongoDB::listCollections() example The following example demonstrates dropping each collection in a database. <?php $m = new Mongo();$db = $m->selectDB(“sample”); $list = $db->listCollections();foreach ($list as $collection) { echo ”removing $collection… ”; $collection->drop(); echo ”gone\n”;} ?> Das oben gezeigte [...]
Geschrieben in PHP-Dokumentation am 12. Januar 2010 0 Kommentare »
Updates Updates can be one of the the most complicated operation available with MongoDB. They combine a query with an action, modifying documents that match the criteria. They are also extremely powerful, allowing you to change documents quickly and replace them altogether. They are done in-place (when possible) with little overhead. Updating Nested Objects Suppose [...]