pgator

This module defines rest api to communicate with rpc server.

License
Subject to the terms of the MIT license, as written in the included LICENSE file.
Authors
NCrashed

template  Column(T...)

Declares template for holding compile time info about column format: name and element type.

First column parameter is an element type, second parameter is column name in response.

Example:
alias col = Column!(uint, "column_name");
static assert(is(col.type == uint));
static assert(col.name == "column_name");

template  isColumn(US...)

Checks is U actually equal Column semantic, i.e. holding type and name.


struct  RpcOk(Cols...);

Structure represents normal response from RPC server with desired columns. Columns element type and name is specified by Column template.