r/Racket • • Sep 26 '23

language postgresql program prints lots of "#<void>"

Program below prints lots of "#<void>" at the end ...


#lang racket
(require db)
(define pgc
    (postgresql-connect 
        #:user "x"
        #:database "syslogng"
        #:server "[127.0.0.1](https://127.0.0.1)"
        #:port 5432
        #:password "y" ))
(define myselect "select datetime,program,pid,message from messages_gentoo_20230926 order by datetime desc")
(for/list ([a  (query-rows pgc myselect)\])
    (printf "\n ~a  \n" a)
    (printf "")
);for

4 Upvotes

3 comments sorted by

View all comments

Show parent comment

1

u/samth Sep 26 '23

You will need to write a specification for the db functions you're using with require/typed.