links

The Links Programming Language
IN THIS PACKAGE
Module Links_core . Database
val connection_info : string option Settings.setting
val mixing_norm : bool Settings.setting
class virtual db_args : string -> object ... end
val value_of_db_string : string -> Types.datatype -> Value.t
val execute_command : string -> Value.database -> Value.t
val execute_select_result : (string * Types.datatype) list -> string -> Value.database -> Value.dbvalue * (string * (Types.datatype * int)) list
val build_result : (Value.dbvalue * (string * (Types.datatype * int)) list) -> Value.t
val execute_select : (string * Types.datatype) list -> string -> Value.database -> Value.t

execute_select [row1; row2; ...] sql db runs the query sql on the database db and interprets the results according to the field types of the rowi. This should really take an alist of fieldname -> fieldtype.

val execute_insert_returning : string -> Sql.query -> Value.database -> Value.t