A | |
| add [Dbi.Decimal] | add n m returns the sum of n and m.
|
C | |
| compare [Dbi.Decimal] | compare n m returns 0 if x=y, a negative integer if
x<y, and a positive integer if x>y.
|
| connect [Dbi.Factory] |
Connect to a specific type of database.
|
D | |
| database_types [Dbi.Factory] |
Returns a list of registered database types.
|
| div [Dbi.Decimal] | div n m returns the division of n by m.
|
I | |
| interval_of_string [Dbi_postgres] |
Convert a string into an interval.
|
| intoption [Dbi] | intoption(Some i) returns `Int i and
intoption None returns `Null.
|
M | |
| mul [Dbi.Decimal] | mul n m returns the product of n and m.
|
O | |
| of_int [Dbi.Decimal] | of_int ?scale i returns the decimal number i * 10**(-scale).
|
| of_string [Dbi.Decimal] | of_string ?scale s returns the decimal number represented by
the string s.
|
P | |
| placeholders [Dbi] | placeholders n returns a string of the form "(?, ?, ..., ?)" containing
n question marks.
|
R | |
| register [Dbi.Factory] |
Specific database drivers register themselves on load (or
Dynlink) by calling this function.
|
S | |
| sdebug [Dbi] | sdebug ss can be used to debug the return value from a #fetch1,
#map or other query.
|
| sql_t_to_string [Dbi] | sql_t_to_string t returns a string representation of t
following the Ocaml conventions.
|
| string_escaped [Dbi] | escape_string s escapes the string s according to SQL rules
and surrounds it with single quotes.
|
| string_of_interval [Dbi_postgres] |
Convert an interval into a string.
|
| string_of_timestamp [Dbi_postgres] |
Convert a timestamp into a string.
|
| stringoption [Dbi] | stringoption(Some s) returns `String s and
stringoption None returns `Null.
|
| sub [Dbi.Decimal] | sub n m returns the difference of n by m.
|
T | |
| timestamp_of_string [Dbi_postgres] |
Convert a string into a timestamp.
|
| to_float [Dbi.Decimal] | to_float n returns the closer float to n.
|
| to_string [Dbi.Decimal] | to_string n returns a string representation of the decimal
number n.
|