return DI::dba()->toArray($stmt, $do_close);
}
+ /**
+ * Cast field types according to the table definition
+ *
+ * @param string $table
+ * @param array $fields
+ * @return array casted fields
+ */
+ public static function castFields(string $table, array $fields)
+ {
+ return DI::dba()->castFields($table, $fields);
+ }
+
/**
* Returns the error number of the last query
*