Add selectId alias

This commit is contained in:
2020-04-11 20:30:12 +02:00
parent f54c42ad60
commit 55741fd898

View File

@@ -688,6 +688,11 @@ class Db extends PhpObject
return empty($oResult)?false:$oResult; return empty($oResult)?false:$oResult;
} }
public function selectId($sTableName, $oConstraints)
{
return $this->selectValue($sTableName, self::getId($sTableName), $oConstraints);
}
public function pingValue($sTableName, $oConstraints) public function pingValue($sTableName, $oConstraints)
{ {
return $this->selectValue($sTableName, 'COUNT(1)', $oConstraints); return $this->selectValue($sTableName, 'COUNT(1)', $oConstraints);