package mysql_protocol
Module Mysql_protocol.Mp_dataSource
SQL columns data types.
type sql = private | Null| Tinyint of int| Smallint of int| Int of int| Longint of Int64.t| Longlongint of Big_int.big_int| Decimal of Num.num| Date of int * int * int| Time of sign * int * int * int * Int64.t| Datetime of (int * int * int) * (int * int * int * Int64.t)| Timestamp of (int * int * int) * (int * int * int * Int64.t)| Float of float| Double of float| Int24 of int| Year of int| Varchar of string| String of string| Varstring of string| Blob of Buffer.t| Binary of Buffer.t| Varbinary of Buffer.t| Enum of string| Set of string| Bit of Bitstring.t| Geometry of Bitstring.t
Build MySQL TIME (sign, hour, min, sec, microsec) value
Build MySQL DATETIME ((year, month, day), (hour, min, sec, microsec)) value
Build MySQL TIMESTAMP ((year, month, day), (hour, min, sec, microsec)) value
Build MySQL BIT value
Build MySQL GEOMETRY value
Convert column data to OCaml value (int). NULL is converted into None.
Convert column data to OCaml value (Int64). NULL is converted into None.
Convert column data to OCaml value (Big_int). NULL is converted into None.
Convert column data to OCaml value (Num). NULL is converted into None.
Convert column data to OCaml value (date). NULL is converted into None.
Convert column data to OCaml value (time). NULL is converted into None.
Convert column data to OCaml value (datetime/timestamp). NULL is converted into None.
Convert column data to OCaml value (float). NULL is converted into None.
Convert column data to OCaml value (string). NULL is converted into None.
Convert column data to OCaml value (Buffer). NULL is converted into None.
Convert column data to OCaml value (Bitstring). NULL is converted into None.