The OpenD Programming Language

PostgreSql

The PostgreSql implementation of the Database interface.

You should construct this class, but then use it through the interface functions.

auto db = new PostgreSql("dbname=name");
foreach(row; db.query("SELECT id, data FROM table_name"))
	writeln(row[0], " = ", row[1]);

Constructors

this
this(string connectionString)

dbname=your_database_name is probably the most common connection string. See section "33.1.1.1. Keyword/Value Connection Strings" on https://www.postgresql.org/docs/10/libpq-connect.html

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

error
string error()
executePreparedStatement
ResultSet executePreparedStatement(string name, T args)

Prepared statement support

startTransaction
void startTransaction()

Meta