Returns the requested structure or a Nullable null value if no rows are returned
This method queries for the given structure by its primary key. If no primary key can be found, a compile-time error will be generated.
Connection conn; // An established connection struct User { @serial @PKey int id; ... }; auto user = conn.findOne!User(1); // will search by the id attribute
See Implementation
Returns the requested structure or a Nullable null value if no rows are returned
This method queries for the given structure by its primary key. If no primary key can be found, a compile-time error will be generated.