[GitHub] [incubator-age] afidegnum edited a comment on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


afidegnum edited a comment on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997583723


   This is my attempted implementation so far, which wasn't successful. I 
believe there is something I'm not properly addressing. 
   
   Cargo.toml
   ```toml
. . . . 
   [dependencies]
   rand = { version = "0.7.3" }
   tokio-postgres = { version = "0.5", features = ["with-chrono-0_4", 
"with-uuid-0_8"] }
   postgres-protocol = "*"
   postgres = "0.19.2"
   postgres-types = "*"
   
   ```
   src/main.rs
   
   ```rs
   struct AgType<'a>(&'a str);
   
   impl<'a> Display for AgType<'a>{
   
   fn fmt(, f:  fmt::Formatter<'_>) -> fmt::Result {
   let d:  = self.0 ; 
   write!(f, "({})", d)
   }
   }
   
   impl<'a> FromSql<'a> for AgType<'a> {
   fn from_sql(_: , raw: &'a [u8]) -> Result, Box> {
   let t = types::text_from_sql(raw)?;
   Ok(AgType(t))
   }
   
   fn accepts(ty: ) -> bool {
   ty.name() == "agtype"
   }
   }
   
   
   fn main(){
   
   pub fn graph_list() -> Result<(), Box> {
   let conn_string = "host=localhost port=5432 dbname=texttest 
user=afidegnum password=chou1979";
   let mut client= Client::connect(conn_string, NoTls)?;
   
   
   .batch_execute("LOAD \'age\'")?;
   
   
   .batch_execute("SET search_path = ag_catalog, \"$user\", public")?;
   
for row in ("SELECT count(*) FROM ag_graph WHERE name= 
'text_test'", &[])?{
println!("{}", row.get::<_, i64>(0));
let  count: i64 = row.get(0); println!("{}", count);
println!("{}", count);
dbg!(count);
}
   
   
   
   for row in client.query("SELECT * from cypher('text_test', $$ MATCH 
(V:node) RETURN id(V) as vid $$) as (vid agtype)", &[])? {
   let path: AgType = row.get(0);
   println!("{}", path)
}
   Ok(())
   }
   
   
   let res = graph_list();
   match res {
   Ok(r) => {println!("Succeeded! {:?} ", r);},
   Err(e) => {println!("Error: {}!", e);}
   }
   
   
   
   }
   ```
   ```
   1
   [src/lib.rs:20] count = 1
   1
   1
   Error: db error: ERROR: no binary output function available for type agtype!
   ```
   
   


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-age] afidegnum edited a comment on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


afidegnum edited a comment on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997583723


   This is my attempted implementation so far, which wasn't successful. I 
believe there is something I'm not properly addressing. 
   
   Cargo.toml
   ```toml
. . . . 
   # [dependencies]
   rand = { version = "0.7.3" }
   tokio-postgres = { version = "0.5", features = ["with-chrono-0_4", 
"with-uuid-0_8"] }
   postgres-protocol = "*"
   postgres = "0.19.2"
   postgres-types = "*"
   
   ```
   src/main.rs
   
   ```rs
   struct AgType<'a>(&'a str);
   
   impl<'a> Display for AgType<'a>{
   
   fn fmt(, f:  fmt::Formatter<'_>) -> fmt::Result {
   let d:  = self.0 ; 
   write!(f, "({})", d)
   }
   }
   
   impl<'a> FromSql<'a> for AgType<'a> {
   fn from_sql(_: , raw: &'a [u8]) -> Result, Box> {
   let t = types::text_from_sql(raw)?;
   Ok(AgType(t))
   }
   
   fn accepts(ty: ) -> bool {
   ty.name() == "agtype"
   }
   }
   
   
   fn main(){
   
   pub fn graph_list() -> Result<(), Box> {
   let conn_string = "host=localhost port=5432 dbname=texttest 
user=afidegnum password=chou1979";
   let mut client= Client::connect(conn_string, NoTls)?;
   
   
   .batch_execute("LOAD \'age\'")?;
   
   
   .batch_execute("SET search_path = ag_catalog, \"$user\", public")?;
   
for row in ("SELECT count(*) FROM ag_graph WHERE name= 
'text_test'", &[])?{
println!("{}", row.get::<_, i64>(0));
let  count: i64 = row.get(0); println!("{}", count);
println!("{}", count);
dbg!(count);
}
   
   
   
   for row in client.query("SELECT * from cypher('text_test', $$ MATCH 
(V:node) RETURN id(V) as vid $$) as (vid agtype)", &[])? {
   let path: AgType = row.get(0);
   println!("{}", path)
}
   Ok(())
   }
   
   
   let res = graph_list();
   match res {
   Ok(r) => {println!("Succeeded! {:?} ", r);},
   Err(e) => {println!("Error: {}!", e);}
   }
   
   
   
   }
   ```
   ```
   1
   [src/lib.rs:20] count = 1
   1
   1
   Error: db error: ERROR: no binary output function available for type agtype!
   ```
   
   


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-age] afidegnum edited a comment on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


afidegnum edited a comment on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997583723


   This is my attempted implementation so far, which wasn't successful. I 
believe there is something I'm not properly addressing. 
   
   Cargo.toml
   ```
. . . . 
   # [dependencies]
   rand = { version = "0.7.3" }
   tokio-postgres = { version = "0.5", features = ["with-chrono-0_4", 
"with-uuid-0_8"] }
   postgres-protocol = "*"
   postgres = "0.19.2"
   postgres-types = "*"
   
   ```
   src/main.rs
   
   ```rs
   struct AgType<'a>(&'a str);
   
   impl<'a> Display for AgType<'a>{
   
   fn fmt(, f:  fmt::Formatter<'_>) -> fmt::Result {
   let d:  = self.0 ; 
   write!(f, "({})", d)
   }
   }
   
   impl<'a> FromSql<'a> for AgType<'a> {
   fn from_sql(_: , raw: &'a [u8]) -> Result, Box> {
   let t = types::text_from_sql(raw)?;
   Ok(AgType(t))
   }
   
   fn accepts(ty: ) -> bool {
   ty.name() == "agtype"
   }
   }
   
   
   fn main(){
   
   pub fn graph_list() -> Result<(), Box> {
   let conn_string = "host=localhost port=5432 dbname=texttest 
user=afidegnum password=chou1979";
   let mut client= Client::connect(conn_string, NoTls)?;
   
   
   .batch_execute("LOAD \'age\'")?;
   
   
   .batch_execute("SET search_path = ag_catalog, \"$user\", public")?;
   
for row in ("SELECT count(*) FROM ag_graph WHERE name= 
'text_test'", &[])?{
println!("{}", row.get::<_, i64>(0));
let  count: i64 = row.get(0); println!("{}", count);
println!("{}", count);
dbg!(count);
}
   
   
   
   for row in client.query("SELECT * from cypher('text_test', $$ MATCH 
(V:node) RETURN id(V) as vid $$) as (vid agtype)", &[])? {
   let path: AgType = row.get(0);
   println!("{}", path)
}
   Ok(())
   }
   
   
   let res = graph_list();
   match res {
   Ok(r) => {println!("Succeeded! {:?} ", r);},
   Err(e) => {println!("Error: {}!", e);}
   }
   
   
   
   }
   ```
   ```
   1
   [src/lib.rs:20] count = 1
   1
   1
   Error: db error: ERROR: no binary output function available for type agtype!
   ```
   
   


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-age] afidegnum commented on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


afidegnum commented on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997583723


   This is my attempted implementation so far, which wasn't successful. I 
believe there is something I'm not properly addressing. 
   
   Cargo.toml
   ```
. . . . 
   # [dependencies]
   rand = { version = "0.7.3" }
   tokio-postgres = { version = "0.5", features = ["with-chrono-0_4", 
"with-uuid-0_8"] }
   postgres-protocol = "*"
   postgres = "0.19.2"
   postgres-types = "*"
   
   ```
   src/main.rs
   
   ```
   struct AgType<'a>(&'a str);
   
   impl<'a> Display for AgType<'a>{
   
   fn fmt(, f:  fmt::Formatter<'_>) -> fmt::Result {
   let d:  = self.0 ; 
   write!(f, "({})", d)
   }
   }
   
   impl<'a> FromSql<'a> for AgType<'a> {
   fn from_sql(_: , raw: &'a [u8]) -> Result, Box> {
   let t = types::text_from_sql(raw)?;
   Ok(AgType(t))
   }
   
   fn accepts(ty: ) -> bool {
   ty.name() == "agtype"
   }
   }
   
   
   fn main(){
   
   pub fn graph_list() -> Result<(), Box> {
   let conn_string = "host=localhost port=5432 dbname=texttest 
user=afidegnum password=chou1979";
   let mut client= Client::connect(conn_string, NoTls)?;
   
   
   .batch_execute("LOAD \'age\'")?;
   
   
   .batch_execute("SET search_path = ag_catalog, \"$user\", public")?;
   
for row in ("SELECT count(*) FROM ag_graph WHERE name= 
'text_test'", &[])?{
println!("{}", row.get::<_, i64>(0));
let  count: i64 = row.get(0); println!("{}", count);
println!("{}", count);
dbg!(count);
}
   
   
   
   for row in client.query("SELECT * from cypher('text_test', $$ MATCH 
(V:node) RETURN id(V) as vid $$) as (vid agtype)", &[])? {
   let path: AgType = row.get(0);
   println!("{}", path)
}
   Ok(())
   }
   
   
   let res = graph_list();
   match res {
   Ok(r) => {println!("Succeeded! {:?} ", r);},
   Err(e) => {println!("Error: {}!", e);}
   }
   
   
   
   }
   ```
   ```
   1
   [src/lib.rs:20] count = 1
   1
   1
   Error: db error: ERROR: no binary output function available for type agtype!
   ```
   
   


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-age] emotionbug commented on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


emotionbug commented on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997563715


   I found some thread about this.
   
   when use rust-postgres driver needs binary I/O.
   I think It needs some implementation.
   
   @jrgemignani @JoshInnis 
   
   https://github.com/sfackler/rust-postgres/issues/389
   
https://www.postgresql.org/message-id/CANmj9Vz10xO_%2BUTE_K7o7BcdDpZhc0W6xBYB%2B7%2Bz6%2BfLVdoxMQ%40mail.gmail.com


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-age-viewer] emotionbug closed issue #16: Node property not being returned in Table view

2021-12-19 Thread GitBox


emotionbug closed issue #16:
URL: https://github.com/apache/incubator-age-viewer/issues/16


   


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




Re: [DISCUSS] Release Apache AGE Viewer (incubating) 1.0.0-rc0

2021-12-19 Thread Alex Kwak
We now close this thread as there has been no objections and move will forward 
to the
[VOTE] thread.
Thank you,

Alex Kwak

On 2021/12/17 02:30:47 Alex Kwak wrote:
> Dear Apache AGE Community,
> We would like to discuss the Apache AGE Viewer release v1.0.0-rc0 that we 
> have been working toward it.
> To learn more about Apache AGE, please see http://age.apache.org/
> 
> Functionalities included and addressed in this release:
> - Graph visualization for AGE.
> - Extends edge and vertex point by point.
> 
> The git tag to be discussed and voted upon
> https://github.com/apache/incubator-age-viewer/releases/tag/v1.0.0
> 
> The git commit hash:
> commit 2c55b2302875449565674aa039517734cf338031
> 
> The release files, including signatures, digests, etc. can be found at:
> https://dist.apache.org/repos/dist/dev/incubator/age/viewer/apache-age-viewer-1.0.0-incubating-rc0/
> 
> The SHA512 Checksum for these artifacts is:
> 8fa45254bba973678243a78321869aaf88c746b55168d4401931c5d6e87192c80d581d97e927c8b87098aaacba8d6f77bf1ca225e864c49117f5cb1887c699d0
> 
> Release artifacts are signed with the following key:
> https://downloads.apache.org/incubator/age/KEYS
> 
> The fingerprint of key to sign release artifacts:
> 0E7F 408D 8C6A 1952 329C  B379 D471 FDCE 5F5C 5B82
> 
> For more information about the contents of this release, see:
> https://github.com/apache/incubator-age-viewer/releases/tag/v1.0.0
> 
> The thread is open for 72 hours and please let us know if you have any 
> questions.
> 
> Best regards,
> Alex Kwak
> 


Re: [DISCUSS] Release Apache AGE Viewer (incubating) 1.0.0-rc0

2021-12-19 Thread Andrew Ko
+1

Thank you


2021년 12월 17일 (금) 오전 11:30, Alex Kwak 님이 작성:

> Dear Apache AGE Community,
> We would like to discuss the Apache AGE Viewer release v1.0.0-rc0 that we
> have been working toward it.
> To learn more about Apache AGE, please see http://age.apache.org/
>
> Functionalities included and addressed in this release:
> - Graph visualization for AGE.
> - Extends edge and vertex point by point.
>
> The git tag to be discussed and voted upon
> https://github.com/apache/incubator-age-viewer/releases/tag/v1.0.0
>
> The git commit hash:
> commit 2c55b2302875449565674aa039517734cf338031
>
> The release files, including signatures, digests, etc. can be found at:
>
> https://dist.apache.org/repos/dist/dev/incubator/age/viewer/apache-age-viewer-1.0.0-incubating-rc0/
>
> The SHA512 Checksum for these artifacts is:
>
> 8fa45254bba973678243a78321869aaf88c746b55168d4401931c5d6e87192c80d581d97e927c8b87098aaacba8d6f77bf1ca225e864c49117f5cb1887c699d0
>
> Release artifacts are signed with the following key:
> https://downloads.apache.org/incubator/age/KEYS
>
> The fingerprint of key to sign release artifacts:
> 0E7F 408D 8C6A 1952 329C  B379 D471 FDCE 5F5C 5B82
>
> For more information about the contents of this release, see:
> https://github.com/apache/incubator-age-viewer/releases/tag/v1.0.0
>
> The thread is open for 72 hours and please let us know if you have any
> questions.
>
> Best regards,
> Alex Kwak
>


Re: [DISCUSS] Release Apache AGE Viewer (incubating) 1.0.0-rc0

2021-12-19 Thread Eya Badal
Looks good to me 
+1 

I checked the following:

- Signature and hash - check.
- DISCLAIMER - check.
- LICENSE and NOTICE - check.
- No unexpected binary files - check.
- incubating in name - check.

Best, 
Eya

On 2021/12/17 02:30:47 Alex Kwak wrote:
> Dear Apache AGE Community,
> We would like to discuss the Apache AGE Viewer release v1.0.0-rc0 that we 
> have been working toward it.
> To learn more about Apache AGE, please see http://age.apache.org/
> 
> Functionalities included and addressed in this release:
> - Graph visualization for AGE.
> - Extends edge and vertex point by point.
> 
> The git tag to be discussed and voted upon
> https://github.com/apache/incubator-age-viewer/releases/tag/v1.0.0
> 
> The git commit hash:
> commit 2c55b2302875449565674aa039517734cf338031
> 
> The release files, including signatures, digests, etc. can be found at:
> https://dist.apache.org/repos/dist/dev/incubator/age/viewer/apache-age-viewer-1.0.0-incubating-rc0/
> 
> The SHA512 Checksum for these artifacts is:
> 8fa45254bba973678243a78321869aaf88c746b55168d4401931c5d6e87192c80d581d97e927c8b87098aaacba8d6f77bf1ca225e864c49117f5cb1887c699d0
> 
> Release artifacts are signed with the following key:
> https://downloads.apache.org/incubator/age/KEYS
> 
> The fingerprint of key to sign release artifacts:
> 0E7F 408D 8C6A 1952 329C  B379 D471 FDCE 5F5C 5B82
> 
> For more information about the contents of this release, see:
> https://github.com/apache/incubator-age-viewer/releases/tag/v1.0.0
> 
> The thread is open for 72 hours and please let us know if you have any 
> questions.
> 
> Best regards,
> Alex Kwak
> 


[GitHub] [incubator-age] emotionbug commented on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


emotionbug commented on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997479063


   I'll look into your issue with #158 


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [incubator-age] afidegnum commented on issue #162: ANTLR, Can you explain the parsing workflow?

2021-12-19 Thread GitBox


afidegnum commented on issue #162:
URL: https://github.com/apache/incubator-age/issues/162#issuecomment-997477902


   any update?


-- 
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: dev-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org