postg 0.1.7

Embedded PostgreSQL manager for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use sqlx::{PgConnection, Executor, Row, Column};
use sqlx::postgres::PgTypeInfo;
use sqlx::TypeInfo;

async fn test(conn: &mut PgConnection) {
    let stmt = conn.prepare("SELECT 1 AS a").await.unwrap();
    for col in stmt.columns() {
        let name = col.name();
        let oid = col.type_info().clone();
        // what is the oid accessor?
    }
}

fn main() {}