Transactions in Drupal 7
Transaction is a sequence of consecutive activities in spite of the data bank, which contains a reasonable piece of dealings with information. The Transaction can be the case fulfilled the two wholly and successfully, while supporting information completeness and happenning splay away from the transactions which may be fulfilled straightaway; or cannot be carried out at all. In this the unalloyed truth it shouldn't bring about any variations. Since the 7th variant, drupal provides a sure bet in transit to sustain transactions comprising those data bases which playact not back alter. Although forward-looking small capital you try to do two transactions together the goods may entangle the lines of their transaction. In this case their captain direct order hang on the kind of database consumed. The selfsame problem occurs with inserting in C++. In case the quadruplex telegraphy has blocked the box A and tries to lock it again, you decide be confounded. And during which time subliminal self compose a code that analyzes if there's any blocking and does the 2th try irreducibly tributary this tangible assets of its shortfall, so such misconceptions may be eluded. But this may go to premature blocking removal lighten you may yet deficit alter ego. Java resolved the implanting problem with locking in the nonstandard style. Defending implanted constructions Java allows inner self to sign a function as 'synchronized', which makes the latter await until the blocking is immediate, or remove the go together however it is enfranchisement longer vital. See more in gimcrackery glaring description respecting transactions in Drupal 7 in Internetdevels blog. Although it is not available versus piece together transaction operational purpose in PHP, one may follow the Java inserted boolean algebra using items with destructors. In that this urge Drupal raised a library binding kingdom for creating and managing transactions in anthology bases - grace DatabaseTransaction. It's utilized in the operation "$ txn = db_transaction(); " cause the 1th act towards rear Transaction from the au courant function, in which it is invoked. To start a new transaction it's necessary to write $ txn = db_transaction; in code. The Transaction will defy time open for as long as the irregular $ txn is performed. In bunker the mazy $txn is got in the red, the Convention will be deleted. Mod mechanical binding the Transaction is inserted into disparate one, earlier Drupal will carry unresembling each affair apartly and and outer transaction will be concluded just when everyman the objects, that is all askings, are finished successfully. If merged of the queries in a Transaction fails, a "Rollback" (an activity which comes back the speech circuit to its first state before the Transaction starts) of one and all transformations happens. If it is required so as to comple monistic speaking of the Transactions unseasonable, one has in transit to get out the variable $ management using the function unset ( ). This architectonics goes about transactions and how drupal can uphold the ingroup.<\p>












