package sequoia

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

Parameters

Signature

Query builder interface

module Param : module type of Sequoia_param with type t = Sequoia_param.t

Query parameters.

module Lit : module type of Sequoia_lit with type 'a t = 'a Sequoia_lit.t with module Vector = Sequoia_lit.Vector

Query parameters.

module Expr : module type of Sequoia_expr with type 'a t = 'a Sequoia_expr.t with type 'a cast = 'a Sequoia_expr.cast with type handover = Sequoia_expr.handover

Literal values.

module Table : module type of Sequoia_table with type 't t = 't Sequoia_table.t

Expressions.

module Field : module type of Sequoia_field with type ('t, 'a) t = ('t, 'a) Sequoia_field.t with type ('t1, 't2) foreign_key = ('t1, 't2) Sequoia_field.foreign_key

SQL tables.

module Vector : module type of Sequoia_vector

Field definitions.

SELECT queries.

SELECT queries.

INSERT queries.

REPLACE queries.

UPDATE queries.

module type FIELD = sig ... end

Field definitions for a given table.

module type NULL_FIELD = sig ... end

Nullable field definitions for a given table.

module type TABLE = sig ... end
val table : string -> (module TABLE)

table name returns a module that can be used to define SQL table fields. The intended use is for this result to be included in an OCaml module that will hold the field definitions.

module MakeTable (T : NAMED) : TABLE

Functor that generates a table module to be used in SQL table defintions. Should only be useful for driver writers.

OCaml

Innovation. Community. Security.