X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-postgresql%2Fpostgresql-api.lisp;h=6f4908f0e32e99dd672a2f0415f3f8140fc0a174;hp=f7ca3610a66770d8998df805b077f8b6493b8d1f;hb=d9f41af62750c622945bb17b622a39689ee5b840;hpb=7d50938ba2db52a713498e49aa1679deae6f0b6b diff --git a/db-postgresql/postgresql-api.lisp b/db-postgresql/postgresql-api.lisp index f7ca361..6f4908f 100644 --- a/db-postgresql/postgresql-api.lisp +++ b/db-postgresql/postgresql-api.lisp @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: postgresql-api.lisp,v 1.1 2002/09/30 10:19:23 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -18,8 +18,7 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0))) -(in-package :postgresql) +(in-package #:postgresql) ;;;; This file implements as little of the FFI bindings to the @@ -53,6 +52,8 @@ (uffi:def-foreign-type pgsql-conn :pointer-void) (uffi:def-foreign-type pgsql-result :pointer-void) +(uffi:def-type pgsql-conn-ptr :pointer-void) + (uffi:def-enum pgsql-ftype ((:bytea 17) (:int2 21) @@ -70,6 +71,7 @@ (dbName :cstring) (login :cstring) (pwd :cstring)) + :module "postgresql" :returning pgsql-conn) (declaim (inline PQfinish))