Fix string escaping
[hcoop/smlsql.git] / sql_client.sig
CommitLineData
f147efc8
AC
1(*
2 * SQL database interfaces for Standard ML
3 * Copyright (C) 2003 Adam Chlipala
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 *)
19
20(* Signature for a full-fledged client interface *)
21
22signature SQL_CLIENT =
23sig
24 include SQL_DRIVER
25
d08450a7 26 val query : conn -> string -> value list list
f147efc8
AC
27 (* Get thr row results of an SQL query over a connection *)
28
d08450a7 29 val oneRow : conn -> string -> value list
f147efc8 30 (* Make a query that must return exactly one row *)
d08450a7 31 val oneOrNoRows : conn -> string -> value list option
f147efc8
AC
32 (* Make a query that may return zero or one row *)
33
d08450a7 34 val app : conn -> (value list -> unit) -> string -> unit
f147efc8 35 (* Behaves like List.app over the results of a query *)
d08450a7 36 val map : conn -> (value list -> 'a) -> string -> 'a list
f147efc8
AC
37 (* Behaves like List.map over the results of a query *)
38end