lib/Drive/DB.php
public function genAI($sTable) {
		$sTable = '`' . addslashes($sTable) . '`';
		$sQuery = 'INSERT INTO ' . $sTable . ' () VALUES ()';
		$iID = $this->getInsertID($sQuery);
		if ($iID && ($iID % 1000 == 0)) {
			$sQuery = 'DELETE FROM ' . $sTable;
			$this->exec($sQuery);
		}
		return $iID;
	}
public function genAI($sTable) {
		$sTable = '`' . addslashes($sTable) . '`';
		$sQuery = 'INSERT INTO ' . $sTable . ' () VALUES ()';
		$iID = $this->getInsertID($sQuery);
		if ($iID && ($iID % 1000 == 0)) {
			$sQuery = 'DELETE FROM ' . $sTable;
			$this->exec($sQuery);
		}
		return $iID;
	}
public function genAI ( $ sTable ) { $ sTable = '`' . addslashes ( $ sTable ) . '`' ; $ sQuery = 'INSERT INTO ' . $ sTable . ' () VALUES ()' ; $ iID = $ this -> getInsertID ( $ sQuery ) ; if ( $ iID && ( $ iID % 1000 == 0 ) ) { $ sQuery = 'DELETE FROM ' . $ sTable ; $ this -> exec ( $ sQuery ) ; } return $ iID ; }
auto increment id generator

@param string $sTable
@access public
@return integer

CREATE TABLE IF NOT EXISTS `id_gen` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=binary AUTO_INCREMENT=1;
auto increment id generator