ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:activerecord:lockmode

$lockMode

TypeString
Default' for update '

Description

Setting the value of this class variable adds the value to SELECT statements executed by load. This value is the default for MySQL databases, but may need to be changed for others.

Usage

In this example we want to load() from an Oracle database with the opportunity of locking the records

class person extends ADOdb_Active_Record
{
    public $lockMode = ' FOR UPDATE NOWAIT';
}
v5/activerecord/lockmode.txt · Last modified: 2016/01/13 02:15 by mnewnham