Anybody seen *working* postgresql client library binding?

mimocrocodil 4denizzz at gmail.com
Fri Aug 12 05:42:54 PDT 2011


Trass3r (un at known.com):

> Maybe http://arsdnet.net/dcode/postgres.d

This is not pure binding, and it is not compiles with current std library without warnings and errors:

std.stdarg is deprecated.  You should import core.vararg instead.
/usr/include/d/dmd/druntime/import/core/stdc/stdarg.di(93): Error: variable core.stdc.stdarg.va_arg!(immutable(char[])).va_arg.parmn cannot modify immutable
/usr/include/d/dmd/druntime/import/core/stdc/stdarg.di(78): Error: template instance core.stdc.stdarg.va_arg!(immutable(char[])) error instantiating
arsd/database.d(28):        instantiated from here: va_arg!(immutable(char[]))
arsd/database.d(28): Error: template instance core.stdc.stdarg.va_arg!(immutable(char[])) error instantiating


I think it is need to create exact binding for libpq and separately create any other higher-level abstractions for Postgres or universal for any DB.
But maybe someone has already done it? So far my searches have not yielded results.


More information about the Digitalmars-d-learn mailing list