+ public static function toArray($stmt, $do_close = true, int $count = 0)
+ {
+ return DI::dba()->toArray($stmt, $do_close, $count);
+ }
+
+ /**
+ * 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)