package petrol

  1. Overview
  2. Docs

Module Postgres.TypeSource

Defines all supported Postgres types.

Sourcetype 'a t = 'a Type.t

Represents a SQL type.

Sourceval bool : bool t

bool represents the SQL boolean type.

Sourceval int : int t

int represents the SQL INTEGER type.

Sourceval real : float t

real represents the SQL REAL type.

Sourceval text : string t

text represents the SQL TEXT type.

Sourceval big_int : int64 Type.t

big_int represents the SQL BIGINT type.

Sourceval big_serial : int64 Type.t

big_serial represents the SQL BIGSERIAL type.

Sourceval bytea : string Type.t

bytea represents the SQL BYTEA type.

Sourceval character : int -> string Type.t

character n represents the SQL CHARACTER(n) type.

Sourceval character_varying : int -> string Type.t

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

Sourceval date : Ptime.t Type.t

date represents the SQL DATE type.

Sourceval double_precision : float Type.t

double_precision represents the SQL double_precision type.

Sourceval int4 : int32 Type.t

int4 represents the SQL INT4 type.

Sourceval smallint : int Type.t

smallint represents the SQL SMALLINT type.

Sourceval smallserial : int Type.t

smallserial represents the SQL SMALLSERIAL type.

Sourceval time : Ptime.t Type.t

time represents the SQL time type.

Sourcemodule Numeric = Type.Numeric
OCaml

Innovation. Community. Security.