Working with postgres::connection type


#1

Hi all.
Im going through processing data from table of postgresql data base and got the next problem:
My object of postgres::Connection type does not have a query() method to process the read data using “SELECT * FROM name …” , however the execute() method exists. I can update, add and delete data from the table but i cant read data from it. my postgres::connection data comes from:
let data_base = Connection::connect(“postgres://dima:3578@localhost:5432/data”, &SslMode::None).unwrap();