X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-postgresql%2Fpostgresql-api.lisp;h=6f4908f0e32e99dd672a2f0415f3f8140fc0a174;hp=06aedc6b01e6ff04873f8763556f5740ff14183d;hb=d9f41af62750c622945bb17b622a39689ee5b840;hpb=bada52b7a8fd2cc484dee33cccd64ca09a52ec3d diff --git a/db-postgresql/postgresql-api.lisp b/db-postgresql/postgresql-api.lisp index 06aedc6..6f4908f 100644 --- a/db-postgresql/postgresql-api.lisp +++ b/db-postgresql/postgresql-api.lisp @@ -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))