www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - PostgreSQL native impl

reply Anton <anton.dutov gmail.com> writes:
Today i spent about hour to write pure-D simple PostgreSQL driver 
for demonstration purposes.
I was looking for developers interested in complete PostgreSQL 
driver (pure D)

That demo not implements auth, therefore requires trusted user

[1] https://github.com/anton-dutov/postgresql-native-d
[2] https://www.postgresql.org/docs/9.6/static/protocol.html
Jan 02 2017
next sibling parent Anton <anton.dutov gmail.com> writes:
P/S

Posix only
Jan 02 2017
prev sibling parent reply Chris Wright <dhasenan gmail.com> writes:
On Mon, 02 Jan 2017 20:29:55 +0000, Anton wrote:

 Today i spent about hour to write pure-D simple PostgreSQL driver for
 demonstration purposes.
 I was looking for developers interested in complete PostgreSQL driver
 (pure D)
 
 That demo not implements auth, therefore requires trusted user
 
 [1] https://github.com/anton-dutov/postgresql-native-d [2]
 https://www.postgresql.org/docs/9.6/static/protocol.html
Nice! Looks like it wouldn't be much work to add prepared queries. I notice you rolled your own uri library. Might I point you toward urld? It supports ipv6 hosts (probably handy) and unicode domain names (nice to have, probably not useful here). http://code.dlang.org/packages/urld
Jan 02 2017
parent reply Arun Chandrasekaran <visionofarun gmail.com> writes:
On Tuesday, 3 January 2017 at 01:08:28 UTC, Chris Wright wrote:
 On Mon, 02 Jan 2017 20:29:55 +0000, Anton wrote:

 Today i spent about hour to write pure-D simple PostgreSQL 
 driver for
 demonstration purposes.
 I was looking for developers interested in complete PostgreSQL 
 driver
 (pure D)
 
 That demo not implements auth, therefore requires trusted user
 
 [1] https://github.com/anton-dutov/postgresql-native-d [2] 
 https://www.postgresql.org/docs/9.6/static/protocol.html
Nice! Looks like it wouldn't be much work to add prepared queries. I notice you rolled your own uri library. Might I point you toward urld? It supports ipv6 hosts (probably handy) and unicode domain names (nice to have, probably not useful here). http://code.dlang.org/packages/urld
This is really neat! I've been looking for one such. I'm used to https://github.com/cpp-netlib/uri in C++.
Jan 03 2017
parent reply Nemanja Boric <4burgos gmail.com> writes:
On Tuesday, 3 January 2017 at 09:07:35 UTC, Arun Chandrasekaran 
wrote:
 On Tuesday, 3 January 2017 at 01:08:28 UTC, Chris Wright wrote:
 On Mon, 02 Jan 2017 20:29:55 +0000, Anton wrote:

 Today i spent about hour to write pure-D simple PostgreSQL 
 driver for
 demonstration purposes.
 I was looking for developers interested in complete 
 PostgreSQL driver
 (pure D)
 
 That demo not implements auth, therefore requires trusted user
 
 [1] https://github.com/anton-dutov/postgresql-native-d [2] 
 https://www.postgresql.org/docs/9.6/static/protocol.html
Nice! Looks like it wouldn't be much work to add prepared queries. I notice you rolled your own uri library. Might I point you toward urld? It supports ipv6 hosts (probably handy) and unicode domain names (nice to have, probably not useful here). http://code.dlang.org/packages/urld
This is really neat! I've been looking for one such. I'm used to https://github.com/cpp-netlib/uri in C++.
Shameless plug, I've been working in my spare time on a similar project: https://github.com/Burgos/postgres-native Progress is super slow, though, but I'm really happy how the things are working out, so just publishing here if somebody wants to take the inspiration from the API or any part of it, or if somebody wants to help :-) I hope in 2017 I'll build a simple web project around it, which should help alot.
Jan 04 2017
next sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2017-01-04 12:26, Nemanja Boric wrote:

 Shameless plug, I've been working in my spare time on a similar project:
 https://github.com/Burgos/postgres-native

 Progress is super slow, though, but I'm really happy how the things are
 working out, so just publishing here if somebody wants to take the
 inspiration from the API or any part of it, or if somebody wants to help
 :-)
There's already a bunch of Postgres drivers here [1], some are native ones, some uses the C library. ddb [2] is, I believe, the oldest native driver at code.dlang.org. That's the one I've been using. Compatible with vibe.d as well. [1] http://code.dlang.org [2] http://code.dlang.org/packages/ddb -- /Jacob Carlborg
Jan 04 2017
parent Anton <anton.dutov gmail.com> writes:
 There's already a bunch of Postgres drivers here [1], some are 
 native ones, some uses the C library. ddb [2] is, I believe, 
 the oldest native driver at code.dlang.org. That's the one I've 
 been using. Compatible with vibe.d as well.

 [1] http://code.dlang.org
 [2] http://code.dlang.org/packages/ddb
Thank for ref, never heard before
Jan 06 2017
prev sibling parent Anton <anton.dutov gmail.com> writes:
 Shameless plug, I've been working in my spare time on a similar 
 project: https://github.com/Burgos/postgres-native

 Progress is super slow, though, but I'm really happy how the 
 things are working out, so just publishing here if somebody 
 wants to take the inspiration from the API or any part of it, 
 or if somebody wants to help :-)

 I hope in 2017 I'll build a simple web project around it, which 
 should help alot.
Nice, need to take look at
Jan 06 2017