Connection.findOneBy

Returns the requested structure, searches by the given column name with the given value If not rows are returned, a Nullable null value is returned

struct Connection
Nullable!T
findOneBy
(
T
U
)
(
string col
,
U val
)

Examples

Connection conn; // An established connection
struct User
{
   @serial @PKey int id;
   ...
};

auto user = conn.findOneBy!User("id", 1); // will search by "id"

Meta