$result = dibi::query('SELECT * FROM [table]');
$row = $result->fetch();
$value = $result->fetchSingle();
$table = $result->fetchAll();
$pairs = $result->fetchPairs();
$assoc = $result->fetchAssoc('col1');
$assoc = $result->fetchAssoc('col1[]col2->col3');
unset($result);
/** * Result set factory. * @param ResultDriver * @return Result */ public function createResultSet(ResultDriver $resultDriver) { $res = new Result($resultDriver); return $res->setFormat(Type::DATE, $this->config['result']['formatDate'])->setFormat(Type::DATETIME, $this->config['result']['formatDateTime']); }