Merge: Wrap postgresql #1810
authorJean Privat <jean@pryen.org>
Tue, 17 May 2016 15:04:29 +0000 (11:04 -0400)
committerJean Privat <jean@pryen.org>
Tue, 17 May 2016 15:04:29 +0000 (11:04 -0400)
commit31869bbc0125c7edb775c70779da70a8e846713d
treeb09b2887a9c54e23fed361ccc438f9d1fbc2cc37
parent0715b5a9671c54bf095de89483fb7156e61f0d8b
parent3eeee5bc83b886ec859fe5a25a6d63ca08b7fddd
Merge: Wrap postgresql #1810

Started working on a wrapper for PostgresSQL as per issue: https://github.com/nitlang/nit/issues/1810

So far this wrapper provides basic functionality allowing:

* a connection to be made
* a statement to be executed
* creation of prepared statements
* executions of prepared statements
* connection status functions

according to the [PostgresSQL libpq interface](http://www.postgresql.org/docs/9.5/interactive/libpq.html). It's about equivalent to the `native_sqlite3.nit` class.

Just wondering how much more functionality we want to add and looking for some review on the usage of the FFI and style.

@xymus @privat

Pull-Request: #2051
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>