spew has quit [Quit: Connection closed for inactivity]
smazga has quit [Quit: leaving]
rosterok has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
kleisli has joined #ocaml
nullifidian_ has joined #ocaml
kleisli has quit [Client Quit]
kleisli has joined #ocaml
nullifidian has quit [Ping timeout: 268 seconds]
nicolaus has joined #ocaml
<nicolaus>
Hi, good day, are there any guides/documentation on how to connect to a postgresql with ocaml code?
<nicolaus>
I am doing it via localhost for now
sarna has quit [Quit: bye]
sarna has joined #ocaml
gahr has quit [Read error: Connection reset by peer]
gahr has joined #ocaml
keep-learning[m] has quit [Ping timeout: 264 seconds]
flux has quit [Ping timeout: 264 seconds]
FreeBirdLjj has joined #ocaml
olle has quit [Ping timeout: 265 seconds]
Haudegen has joined #ocaml
olle has joined #ocaml
jao has joined #ocaml
jao has quit [Changing host]
jao has joined #ocaml
keep_learning has quit [Remote host closed the connection]
mahmudov has quit [Remote host closed the connection]
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 268 seconds]
mfp has quit [Ping timeout: 248 seconds]
FreeBird_ has quit [Ping timeout: 240 seconds]
FreeBirdLjj has joined #ocaml
wingsorc has quit [Ping timeout: 260 seconds]
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 268 seconds]
mbuf has joined #ocaml
kamog has joined #ocaml
kleisli has quit [Ping timeout: 240 seconds]
porchetta has quit [Ping timeout: 240 seconds]
porchetta has joined #ocaml
kleisli has joined #ocaml
FreeBird_ has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
rosterok has quit [Quit: Connection closed for inactivity]
dborisog has joined #ocaml
oni-on-ion has quit [Ping timeout: 260 seconds]
jao has quit [Ping timeout: 265 seconds]
gravicappa has joined #ocaml
<nicolaus>
Hi, has anyone tried PGOCaml? I have installed all the necessary libraries but still not able to compile code with PGOcaml in it
kjak has quit [Ping timeout: 268 seconds]
vicfred has joined #ocaml
<kleisli>
hey all, i'm getting the error "fatal error: gmp.h: No such file or directory" when installing the cryptokit package through opam. i'm on debian and i have libgmp-dev installed. have verified that gmp.h is in /usr/include/x86_64-linux-gnu/. any ideas why this might be?
sailor177354 has joined #ocaml
narimiran has joined #ocaml
ollehar has joined #ocaml
sailor177354 has quit [Quit: Leaving]
jnavila has joined #ocaml
kleisli has quit [Ping timeout: 240 seconds]
vicfred has quit [Ping timeout: 265 seconds]
vicfred has joined #ocaml
ygrek_ has joined #ocaml
Serpent7776 has joined #ocaml
ggole has joined #ocaml
ziyourenxiang has quit [Quit: Leaving]
rcabaco has joined #ocaml
<Leonidas>
nicolaus: you need to have postgres running to use pgocaml, since it needs to talk to postgres to determine the schema
bytesighs has quit []
bytesighs has joined #ocaml
mbuf has quit [Quit: Leaving]
<Leonidas>
hmm, Alcotest_lwt.run seems to be gone? Or am I doing something wrong?
<madroach>
Leonidas: the Lwt interface did change a while ago. Maybe it was now released?
Serpent7776 has quit [Remote host closed the connection]
Serpent7776 has joined #ocaml
jeroud has quit []
Serpent7776 has quit [Remote host closed the connection]
mfp has joined #ocaml
jeroud has joined #ocaml
Serpent7776 has joined #ocaml
Serpent7776 has quit [Ping timeout: 272 seconds]
Serpent7776 has joined #ocaml
jyc_ has quit []
jyc_ has joined #ocaml
dhil has joined #ocaml
<nicolaus>
Leonidas: It is not seen by the ocaml compiler yet because I get unbound module PGOcaml
<nicolaus>
I also have postgres already installed and running
<nicolaus>
on localhost
rgrinberg has quit []
rgrinberg has joined #ocaml
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 260 seconds]
bitonic has quit []
bitonic has joined #ocaml
<dborisog>
nicolaus: I ocsigen-start uses PGOcaml, if you have ocsigen-start working, then the sample queries are compiles and likely executed properly. Meaning, if you have ocsigen-start working and your project not-working because of problems with PGOcaml, it likely means you have a bug or incompleteness in the code.
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 268 seconds]
<dborisog>
My initial problem with PGOcaml SQL queries was syntax problems with arguments I passing from function to "SQL script". Please have a look at working example that takes on argument.
<dborisog>
let country_info ccode =
<dborisog>
[%pgsql dbh "
<dborisog>
full_transaction_block (fun dbh ->
<dborisog>
SELECT c.code, c.name
<dborisog>
FROM stateruler.country c
<dborisog>
WHERE c.code = $ccode" ])
FreeBird_ has quit [Ping timeout: 265 seconds]
FreeBirdLjj has joined #ocaml
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 272 seconds]
kakadu has quit [Remote host closed the connection]
kakadu has joined #ocaml
dhil has quit [Ping timeout: 260 seconds]
kakadu has quit [Ping timeout: 240 seconds]
kakadu_ has joined #ocaml
kakadu_ has quit [Ping timeout: 265 seconds]
Haudegen has quit [Quit: Bin weg.]
dhil has joined #ocaml
lynn has quit []
lynn has joined #ocaml
<prsafont[m]>
madroach alcotest 1.0 is not out yetAFAIK
<nicolaus>
dorisborg: can i see your opam list? I just want to check the versions of the libraries including ocaml and pgocaml