package mariadb

  1. Overview
  2. Docs

Module Blocking.RowSource

A module representing database rows. Rows can be retrieved as different data structures, which as passed to the row retrieval functions from the Res module. There's built-in support for fetching rows as arrays and maps and hash tables of field name to field, but any module conforming to Row.S can be provided to those functions.

Sourcemodule type S = sig ... end
Sourcemodule StringMap : Map.S with type key = string
Sourcemodule Array : S with type t = Field.t array

Rows as field arrays.

Sourcemodule Map : S with type t = Field.t StringMap.t

Rows as field name to Field.t maps.

Sourcemodule Hashtbl : S with type t = (string, Field.t) Hashtbl.t

Rows as field name to Field.t hash tables.