Postgresql integration.

This commit is contained in:
Dominik Pantůček 2025-04-01 11:35:11 +02:00
parent a59567d4ab
commit 24e0b487c5
3 changed files with 7 additions and 2 deletions

View file

@ -17,7 +17,7 @@ BRMINV_OBJS=brminv.o frontend.o command-line.o util-proc.o duck.o \
$(CSC) -regenerate-import-libraries -P -J $<
../brminv: $(BRMINV_OBJS)
$(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lssl -L -Wl,-lcrypto -L -Wl,-Bdynamic -strip -static -o $@ $(BRMINV_OBJS)
$(CSC) -L --no-lto -L -Wl,-static -L -Wl,-lssl -L -Wl,-lcrypto -L -Wl,-Bdynamic -L -Wl,-lpq -strip -static -o $@ $(BRMINV_OBJS)
frontend.o: frontend.import.scm
frontend.import.scm: frontend.scm

View file

@ -31,7 +31,8 @@
(chicken tcp)
intarweb
uri-common
(chicken string))
(chicken string)
postgresql)
(define -port- (make-parameter #f))
(define -certificate- (make-parameter #f))
@ -73,6 +74,9 @@
(print " Certificate:" (-certificate-))
(print " Key:" (-key-)))
(define dbconn (connect "postgresql:///brmbar"))
(print dbconn)
(define listener
(if ssl?
(ssl-listen port)

View file

@ -55,6 +55,7 @@ trap chicken_cleanup INT QUIT
# Install required eggs
chicken_install spiffy
chicken_install openssl
chicken_install postgresql
# Normal termination cleanup
chicken_cleanup