Remove Makefile
[hcoop/smlsql.git] / sql_client.sig
... / ...
CommitLineData
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
26 val query : conn -> string -> string list list
27 (* Get thr row results of an SQL query over a connection *)
28
29 val oneRow : conn -> string -> string list
30 (* Make a query that must return exactly one row *)
31 val oneOrNoRows : conn -> string -> string list option
32 (* Make a query that may return zero or one row *)
33
34 val app : conn -> (string list -> unit) -> string -> unit
35 (* Behaves like List.app over the results of a query *)
36 val map : conn -> (string list -> 'a) -> string -> 'a list
37 (* Behaves like List.map over the results of a query *)
38end