package sequoia

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

Functor that generates an UPDATE query builder for the given driver.

Parameters

Signature

type _ t

The type of UPDATE queries.

val seal : handover:Sequoia_expr.handover -> 't t -> string * Sequoia_param.t list

Mark the end of a UPDATE query.

module OrderBy : sig ... end

Definitions for ORDER BY clauses.

module Expr : sig ... end

UPDATE query expressions.

type ('t, 'a) mk = ('t, 'a) Sequoia_field.t * ('t Sequoia_table.t -> ('t, 'a) Sequoia_expr.expr)

The type of UPDATE builders.

module Vector : Sequoia_vector.S with type ('t, 'a) elem := ('t, 'a) mk

Vector of UPDATE builders.

val update : 't Sequoia_table.t -> set:('t, 'a, 'n Sequoia_vector.Nat.s) Vector.t -> 't t

Defines an UPDATE query for the given field/expression pairs.

val where : ('t Sequoia_table.t -> 'a Sequoia_expr.t) -> 't t -> 't t

Defines a WHERE clause for an UPDATE query.

val order_by : ('t, 'a, 'n Sequoia_vector.Nat.s) OrderBy.Expr.Vector.t -> 't t -> 't t

Defines an ORDER BY clause for an UPDATE query.

val limit : ?offset:int -> int -> 't t -> 't t

Defines a LIMIT clause for an UPDATE query.

OCaml

Innovation. Community. Security.