mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
Added new getTypes method (#327)
Added getTypes method, to get all columns and its types, this is faster then write foreach for getting all columns, and getColumns do not get column type (there is null)
This commit is contained in:
committed by
David Grudl
parent
2b5683d0f2
commit
19172c801e
@@ -522,6 +522,15 @@ class Result implements IDataSource
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns columns type.
|
||||
*/
|
||||
final public function getTypes(): array
|
||||
{
|
||||
return $this->types;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Sets date format.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user