r4863: Auto commit for Debian build
[clsql.git] / db-postgresql / postgresql-package.lisp
1 ;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
4 ;;;;
5 ;;;; Name:          postgresql-package.cl
6 ;;;; Purpose:       Package definition for low-level PostgreSQL interface
7 ;;;; Programmer:    Kevin M. Rosenberg
8 ;;;; Date Started:  Feb 2002
9 ;;;;
10 ;;;; $Id: postgresql-package.lisp,v 1.2 2003/05/07 02:45:08 kevin Exp $
11 ;;;;
12 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
13 ;;;;
14 ;;;; CLSQL users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
18
19 (in-package #:cl-user)
20
21 (defpackage #:postgresql
22     (:nicknames #:pgsql)
23     (:use #:cl #:clsql-uffi)
24     (:export
25      #:pgsql-oid
26      #:pgsql-conn-status-type
27      #:pgsql-conn-status-type#connection-ok
28      #:pgsql-conn-status-type#connection-bad
29      #:pgsql-exec-status-type
30      #:pgsql-exec-status-type#empty-query
31      #:pgsql-exec-status-type#command-ok
32      #:pgsql-exec-status-type#tuples-ok
33      #:pgsql-exec-status-type#copy-out
34      #:pgsql-exec-status-type#copy-in
35      #:pgsql-exec-status-type#bad-response
36      #:pgsql-exec-status-type#nonfatal-error
37      #:pgsql-exec-status-type#fatal-error
38      #:pgsql-conn
39      #:pgsql-result
40
41      #:pgsql-ftype#bytea
42      #:pgsql-ftype#int2
43      #:pgsql-ftype#int4
44      #:pgsql-ftype#int8
45      #:pgsql-ftype#float4
46      #:pgsql-ftype#float8
47      
48      ;; Functions
49      #:PQsetdbLogin
50      #:PQlogin
51      #:PQfinish
52      #:PQstatus
53      #:PQerrorMessage
54      #:PQexec
55      #:PQresultStatus
56      #:PQresultErrorMessage
57      #:PQntuples
58      #:PQnfields
59      #:PQfname
60      #:PQfnumber
61      #:PQftype
62      #:PQfsize
63      #:PQcmdStatus
64      #:PQoidStatus
65      #:PQcmdTuples
66      #:PQgetvalue
67      #:PQgetlength
68      #:PQgetisnull
69      #:PQclear
70      #:PQisBusy
71      
72      ;;Large Objects (Marc B)
73      #:lo-create
74      #:lo-open
75      #:lo-write
76      #:lo-read
77      #:lo-lseek
78      #:lo-close
79      #:lo-unlink
80      )
81     (:documentation "This is the low-level interface to PostgreSQL."))
82
83