package petrol

  1. Overview
  2. Docs

Defines all supported Postgres types.

type 'a t = 'a Type.t

Represents a SQL type.

val bool : bool t

bool represents the SQL boolean type.

val int : int t

int represents the SQL INTEGER type.

val real : float t

real represents the SQL REAL type.

val text : string t

text represents the SQL TEXT type.

val big_int : int64 Type.t

big_int represents the SQL BIGINT type.

val big_serial : int64 Type.t

big_serial represents the SQL BIGSERIAL type.

val bytea : string Type.t

bytea represents the SQL BYTEA type.

val character : int -> string Type.t

character n represents the SQL CHARACTER(n) type.

val character_varying : int -> string Type.t

character_varying n represents the SQL CHARACTER VARYING(n) type.

val date : Ptime.t Type.t

date represents the SQL DATE type.

val double_precision : float Type.t

double_precision represents the SQL double_precision type.

val int4 : int32 Type.t

int4 represents the SQL INT4 type.

val smallint : int Type.t

smallint represents the SQL SMALLINT type.

val smallserial : int Type.t

smallserial represents the SQL SMALLSERIAL type.

val time : Ptime.t Type.t

time represents the SQL time type.

module Numeric = Type.Numeric