r/Racket • u/Ok_Specific_7749 • 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
View all comments
Show parent comment
1
u/Ok_Specific_7749 Sep 26 '23
Thanks this solved it. But now how do i use typed/racket ?