Thread overview
PostgreSQL native impl
Jan 02
Anton
Jan 02
Anton
Jan 06
Anton
Jan 06
Anton
January 02
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
January 02
P/S

Posix only
January 03
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
January 03
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++.
January 04
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.

January 04
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
January 06
> 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
January 06
> 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