Version 0.9.5 beta - Updated the MySQL adapter in order to load complete result sets by where selection.

This commit is contained in:
Stephan Kasdorf
2020-11-06 17:34:36 +01:00
parent 935575dfb3
commit 790f79530e
3 changed files with 82 additions and 17 deletions

View File

@@ -43,15 +43,6 @@ abstract class Db implements IDb
}
}
/**
* will return the last inserted id of the given table
* @return int
*/
public function lastInsertId()
{
return Pdo::getLastInsertedID();
}
/**
* @param bool $user_name
* @return mixed
@@ -117,6 +108,24 @@ abstract class Db implements IDb
}
}
/**
* @param array $fieldWhere
* @return mixed|void
*/
public function selectDatasetByFieldWhere($fieldWhere = array())
{
return Pdo::selectDatasetByFieldAndValue(self::$table['table'], $fieldWhere);
}
/**
* will return the last inserted id of the given table
* @return int
*/
public function lastInsertId()
{
return Pdo::getLastInsertedID();
}
public function nextInsertIndex()
{
// TODO: Implement nextInsertIndex() method.