Module Mssql.Row
val create_exn : month_offset:int -> colnames:string list -> Freetds.Dblib.data list -> t
val to_alist : t -> (string * string) list
to_alist t
converts t to a list of (colname, value) pairs
val bignum : t -> string -> Bignum.t option
bignum colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to a bignum or wasn't in the query.
val bignum_exn : t -> string -> Bignum.t
bignum_exn colname
similar tobignum
but asserts that the column namedcolname
exists and the data is not null.
val bool : t -> string -> bool option
bool colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to a bool or wasn't in the query.
val bool_exn : t -> string -> bool
bool_exn colname
similar tobool
but asserts that the column namedcolname
exists and the data is not null.
val float : t -> string -> float option
float colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to a float or wasn't in the query.
val float_exn : t -> string -> float
float_exn colname
similar tofloat
but asserts that the column namedcolname
exists and the data is not null.
val int : t -> string -> int option
int colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to an int or wasn't in the query.
val int_exn : t -> string -> int
int_exn colname
similar toint
but asserts that the column namedcolname
exists and the data is not null.
val int32 : t -> string -> int32 option
int32 colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to an int32 or wasn't in the query.
val int32_exn : t -> string -> int32
int32_exn colname
similar toint32
but asserts that the column namedcolname
exists and the data is not null.
val int64 : t -> string -> int64 option
int64 colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to an int64 or wasn't in the query.
val int64_exn : t -> string -> int64
int64_exn colname
similar toint64
but asserts that the column namedcolname
exists and the data is not null.
val str : t -> string -> string option
str colname
returns the value of the given column, or None if the column is null. Throws an exception if the column wasn't in the query.
val str_exn : t -> string -> string
str_exn colname
similar tostr
but asserts that the column namedcolname
exists and the data is not null.
val date : t -> string -> Core.Date.t option
date colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to a bool or wasn't in the query.
val date_exn : t -> string -> Core.Date.t
date_exn colname
similar todate
but asserts that the column namedcolname
exists and the data is not null.
val datetime : t -> string -> Core.Time.t option
datetime colname
returns the value of the given column, or None if the column is null. Throws an exception if the column can't be converted to a bool or wasn't in the query.
val datetime_exn : t -> string -> Core.Time.t
datetime_exn colname
similar todatetime
but asserts that the column namedcolname
exists and the data is not null.