ddb icon indicating copy to clipboard operation
ddb copied to clipboard

Database access for D2. Currently, only PostgreSQL client.

Results 15 ddb issues
Sort by recently updated
recently updated
newest added

Good: Nullable!User getUser(int _user_id) { auto conn = m_pgdb.lockConnection(); auto cmd = new PGCommand(conn, "SELECT user_id, username, email FROM users WHERE user_id = $1;"); cmd.parameters.add(1, PGType.INT4).value = _user_id; .. }...

Added implementation of VARCHAR and FLOAT8/DOUBLE PRECISION types. VARCHAR simply using same check and stream writing as TEXT. FLOAT8 uses 8 bytes as a double. Also added more info to...

Actually the PostgreSQL bytea type is handled by the D ubyte[] type, like the varchar, text is handled by the D string type. The readArray method of 'Message' is using...

As per the title, initialization always fails with the following backtrace: object.Exception@/home/michele/dev/code/d/ovonovo/libs/ddb/ddb/db.d(288): Received field count is not equal to Tuple!(uint, "arrayOid", uint, "elemOid")'s field count 0x44635e pure void ddb.db.DBRow!(uint, "arrayOid",...

It seems that there is nothing in Phobos that can map to inet/cidr types (they have a bitmask). What do you think it might be - new type or simple...