package sequoia

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Field definitions for a given table.

type table
type 'a t = (table, 'a) Field.t
type 't foreign_key = (table, 't) Field.foreign_key

Field definition functions

These functions define a field of the respective type that corresponds to the SQL field given by the string parameter.

val bool : string -> bool t
val int : string -> int t
val float : string -> float t
val string : string -> string t
val blob : string -> bytes t
val foreign_key : string -> references:('t, int) Field.t -> 't foreign_key
OCaml

Innovation. Community. Security.