afidegnum opened a new issue #158:
URL: https://github.com/apache/incubator-age/issues/158
I decided to step into the Rust AGE development by starting with few tests
and I'm greeted with the following error.
`Row { columns: [Column { name: "count", type: Int8 }] }`
`Error: db error: ERROR: no binary output function available for type
agtype!`
this is what I've written so far.
```
pub fn graph_list() -> Result<(), Error> {
let conn_string = "host=localhost port=5432 dbname=texttest
user=afidegnum password=chou1979";
let mut client= Client::connect(conn_string, NoTls)?;
&client
.batch_execute("LOAD \'age\'")?;
&client
.batch_execute("SET search_path = ag_catalog, \"$user\", public")?;
for types in &client.query("SELECT count(*) FROM ag_graph WHERE name=
'\text_test\'", &[])?{
println!("{:?}", types)
}
for row in client.query("SELECT * from cypher('text_test', $$ MATCH
(V:node) RETURN V $$) as (V agtype)", &[])? {
println!("{:?}", row);
}
Ok(())
}
let res = graph_list();
match res {
Ok(r) => {println!("Succeeded! {:?} ", r);},
Err(e) => {println!("Error: {}!", e);}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]