Обсуждение: [GENERAL] New interface to PG from Chapel?
I’m interested to know the level of effort to build a psycopg2-like library for Chapel: http://chapel.cray.com/ Not being much of a programmer myself, does someone have an educated opinion on this?
Thank you,
b
On 9/15/2017 12:56 PM, Thelonius Buddha wrote: > I’m interested to know the level of effort to build a psycopg2-like > library for Chapel: http://chapel.cray.com/ Not being much of a > programmer myself, does someone have an educated opinion on this? I don't see any standard database interface frameworks to hang a SQL library/driver on. the fact that its a heavily concurrent/parallel language would likely mean there's many boobytraps en route to successfully using SQL, as you need to ensure that one PG connection is only ever used by the thread that created it -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general
> On Sep 15, 2017, at 12:56 PM, Thelonius Buddha <buddha314@gmail.com> wrote: > > I’m interested to know the level of effort to build a psycopg2-like library for Chapel: http://chapel.cray.com/ Not beingmuch of a programmer myself, does someone have an educated opinion on this? It looks like you can call C libraries from Chapel, so you can use libpq directly. Psycopg2 complies with the python databaseAPI, but there doesn't seem anything like that for Chapel, so there's not really an equivalent. So it depends on how complex a wrapper you want. At the low end, very little effort - libpq exists; you can call it fromChapel if you just declare the api, I think. Cheers, Steve -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general