<_xvilka_>
to prevent repetitive code, the only changing things are 1) sql query 2) processing of the tuple inside 3) returning the results
<_xvilka_>
question is - how I can effectively extract the repetitive part and just change those things
<_xvilka_>
it should return different types - sometimes it's a list, sometimes it's a tuple, sometimes is a variant or even more complex custom type
<_xvilka_>
so basically something like 1) string for sql query 2) function for converting tuples into something 3) not sure how to return those results from 2nd step
petercommand has quit [Ping timeout: 260 seconds]
petercommand has joined #ocaml
<_xvilka_>
I'll be afk, but will check the answer tomorrow, if there will be one. Thank you
cobreadmonster has quit [Quit: Connection closed for inactivity]
jnavila has joined #ocaml
mfp has joined #ocaml
<Drup>
_xvilka_: it's difficult to answer you without code examples
bbc- is now known as bbc
raphaelss has joined #ocaml
mbuf has quit [Quit: Leaving]
ziyourenxiang has joined #ocaml
Serpent7776 has joined #ocaml
kakadu has joined #ocaml
zolk3ri has joined #ocaml
Guest84067 has joined #ocaml
Guest84067 has quit [Remote host closed the connection]
silver has joined #ocaml
raduom has joined #ocaml
KeyJoo has quit [Ping timeout: 256 seconds]
sh0t has joined #ocaml
arecacea1 has quit [Remote host closed the connection]
arecacea1 has joined #ocaml
raduom has quit [Ping timeout: 265 seconds]
KeyJoo has joined #ocaml
jimmyrcom has quit [Ping timeout: 265 seconds]
jao has joined #ocaml
shinnya has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
jao has quit [Ping timeout: 260 seconds]
silver has quit [Read error: Connection reset by peer]
silver has joined #ocaml
andreas__ has joined #ocaml
andreas__ has quit [Client Quit]
andreas_ has joined #ocaml
jao has joined #ocaml
tg has quit [Read error: Connection reset by peer]
shinnya has quit [Ping timeout: 256 seconds]
demonimin has quit [Quit: No Ping reply in 180 seconds.]
demonimin has joined #ocaml
demonimin has joined #ocaml
tg has joined #ocaml
mbuf has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
h4un has joined #ocaml
mbuf has quit [Quit: Leaving]
snowcrshd has joined #ocaml
snowcrshd is now known as ltt
kakadu has quit [Remote host closed the connection]
raphaelss has quit [Remote host closed the connection]
kakadu has joined #ocaml
h4un has quit [Ping timeout: 260 seconds]
Jesin has joined #ocaml
ltt has quit [Remote host closed the connection]
jnavila has quit [Ping timeout: 240 seconds]
ziyourenxiang has quit [Ping timeout: 252 seconds]
ltt has joined #ocaml
Serpent7776 has quit [Quit: Leaving]
sh0t has quit [Read error: Connection reset by peer]
sh0t has joined #ocaml
Exagone313 has quit [Read error: Connection reset by peer]
raphaelss has joined #ocaml
ltt_ has joined #ocaml
ltt has quit [Ping timeout: 252 seconds]
Exagone313 has joined #ocaml
ygrek has joined #ocaml
sh0t has quit [Remote host closed the connection]
kakadu has quit [Quit: Konversation terminated!]
rgrinberg has quit [Ping timeout: 252 seconds]
andreypopp has quit [Ping timeout: 252 seconds]
vinoski has quit [Ping timeout: 252 seconds]
jmct has quit [Ping timeout: 255 seconds]
chenglou has quit [Ping timeout: 250 seconds]
cbarrett has quit [Ping timeout: 250 seconds]
ggherdov has quit [Ping timeout: 250 seconds]
IbnFirnas has quit [Ping timeout: 240 seconds]
rfv has quit [Ping timeout: 240 seconds]
mrallen1 has quit [Read error: Connection reset by peer]
monad_cat has quit [Ping timeout: 252 seconds]
lopex has quit [Ping timeout: 255 seconds]
ilovezfs_ has quit [Read error: Connection reset by peer]
dch has quit [Ping timeout: 240 seconds]
oh_lawd has quit [Ping timeout: 264 seconds]
jeroud has quit [Ping timeout: 255 seconds]
JSharp has quit [Read error: Connection reset by peer]
caw__ has quit [Read error: Connection reset by peer]
bigs has quit [Read error: Connection reset by peer]
ianconnolly has quit [Ping timeout: 250 seconds]
rjungemann has quit [Read error: Connection reset by peer]
jeffmo has quit [Ping timeout: 250 seconds]
lynn has quit [Read error: Connection reset by peer]
andreas_ has quit [Ping timeout: 272 seconds]
mankyKitty has quit [Ping timeout: 240 seconds]
jyc has quit [Ping timeout: 255 seconds]
l1x has quit [Ping timeout: 252 seconds]
banjiewen has quit [Ping timeout: 250 seconds]
strmpnk has quit [Ping timeout: 250 seconds]
grandy____ has quit [Ping timeout: 255 seconds]
terrorjack has quit [Ping timeout: 250 seconds]
rostero has quit [Ping timeout: 240 seconds]
adi_____ has quit [Ping timeout: 252 seconds]
cojy has quit [Ping timeout: 240 seconds]
stephe has quit [Ping timeout: 250 seconds]
ec has quit [Ping timeout: 272 seconds]
mattg has quit [Ping timeout: 264 seconds]
sspi has quit [Ping timeout: 276 seconds]
Exagone313 has quit [Ping timeout: 272 seconds]
butterthebuddha has quit [Ping timeout: 260 seconds]
butterthebuddha has joined #ocaml
Exagone313 has joined #ocaml
ltt_ has quit [Remote host closed the connection]
chenglou has joined #ocaml
jeroud has joined #ocaml
_andre has quit [Quit: leaving]
mrallen1 has joined #ocaml
kakadu has joined #ocaml
grandy____ has joined #ocaml
lopex has joined #ocaml
JSharp has joined #ocaml
caw__ has joined #ocaml
lynn has joined #ocaml
rostero has joined #ocaml
dch has joined #ocaml
mattg has joined #ocaml
monad_cat has joined #ocaml
andreypopp has joined #ocaml
andreypopp is now known as Guest32984
l1x has joined #ocaml
jmct has joined #ocaml
andreas_ has joined #ocaml
ilovezfs_ has joined #ocaml
ec has joined #ocaml
strmpnk has joined #ocaml
stephe has joined #ocaml
rjungemann has joined #ocaml
cojy has joined #ocaml
jyc has joined #ocaml
Muzer has joined #ocaml
bigs has joined #ocaml
rfv has joined #ocaml
ianconnolly has joined #ocaml
terrorjack has joined #ocaml
vinoski has joined #ocaml
ltt has joined #ocaml
banjiewen has joined #ocaml
ltt has quit [Ping timeout: 272 seconds]
ltt has joined #ocaml
<argent_smith>
aantron: does Lwt.join exit when one of the threads fails?
okeuday_bak has quit [Quit: Leaving.]
VermillionAzure has joined #ocaml
VermillionAzure has quit [Ping timeout: 272 seconds]