dpq.relationproxy

Members

Functions

reload
T reload(ref T record)

Reloads the record from the DB, overwrites it. Returns a reference to the same object.

remove
auto remove(T record)

Removes a record from the DB, filtering by the primary key.

save
bool save(T record)

See: RelationProxy's save method

update
auto update(T record, U[string] values)

Updates a single record with the new values, does not set them on the record itself.

Structs

RelationProxy
struct RelationProxy(T)

A structure proxying to the actual Postgres table.

Templates

IsValidRelation
template IsValidRelation(T)

Verifies that the given type can be used a relation

Meta