www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Writing Postgresql extension in D

reply Ranjan <Company.ranjan gmail.com> writes:
This is my first time on the Dlang forum. I like the language but 
my usecase is a bit different.

I want to write Postgresql extension in D. Currently extension 
can be written in C or C linked languages. Has anyone done this 
or can point me to some code.

Thanks
Nov 15 2018
parent reply Laeeth Isharc <Laeeth laeeth.com> writes:
On Thursday, 15 November 2018 at 13:42:17 UTC, Ranjan wrote:
 This is my first time on the Dlang forum. I like the language 
 but my usecase is a bit different.

 I want to write Postgresql extension in D. Currently extension 
 can be written in C or C linked languages. Has anyone done this 
 or can point me to some code.

 Thanks
Welcome. I looked into this but decided to wait because at the time the postgres headers had some unpleasant features that at the time DPP couldn't handle. I think it might be better now. Presuming you are talking about server side extensions that is.
Nov 16 2018
parent Ranjan <Company.ranjan gmail.com> writes:
On Friday, 16 November 2018 at 19:10:22 UTC, Laeeth Isharc wrote:
 On Thursday, 15 November 2018 at 13:42:17 UTC, Ranjan wrote:
 This is my first time on the Dlang forum. I like the language 
 but my usecase is a bit different.

 I want to write Postgresql extension in D. Currently extension 
 can be written in C or C linked languages. Has anyone done 
 this or can point me to some code.

 Thanks
Welcome. I looked into this but decided to wait because at the time the postgres headers had some unpleasant features that at the time DPP couldn't handle. I think it might be better now. Presuming you are talking about server side extensions that is.
Thanks, yes these are server side extension something like this but in D http://big-elephants.com/2015-10/writing-postgres-extensions-part-i/
Nov 18 2018