links

The Links Programming Language
IN THIS PACKAGE
Module Links_lens . Database
type t = {
serialize : unit -> string;
driver_name : unit -> string;
escape_string : string -> string;
quote_field : string -> string;
execute : string -> unit;
execute_select : string -> field_types:(string * Links_lens__Phrase_type.t) list -> Links_lens__Phrase_value.t list;
}
val dummy_database : t

Dummy database driver that does not support execution.

module Table : sig ... end
val fmt_col : db:t -> Format.formatter -> Column.t -> unit
val fmt_table : db:t -> Format.formatter -> (string * string) -> unit

Format a pair of table and alias values.

val fmt_tables : db:t -> Format.formatter -> (string * string) list -> unit

Format a list table and alias pairs.

val fmt_cols : db:t -> Format.formatter -> Column.t list -> unit

Format a list of columns.

val fmt_phrase : db:t -> map:( string -> string ) -> Format.formatter -> Phrase.t -> unit

Format a phrase.

val fmt_phrase_dummy : Format.formatter -> Phrase.t -> unit

Formats a phrase using a dummy db driver. This should only be used for debugging.

val to_string_dummy : Phrase.t -> string

Convert the phrase to a string using a dummy db driver. This should only be used for debugging.

module Select : sig ... end
module Delete : sig ... end
module Update : sig ... end
module Insert : sig ... end
module Change : sig ... end