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

1 Connection conn; // An established connection
2 struct User
3 {
4 	@serial @PKey int id;
5 	...
6 };
7 
8 auto user = conn.findOneBy!User("id", 1); // will search by "id"

Meta