File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ use crate::types::*;
7
7
use std:: sync:: Arc ;
8
8
use tokio:: sync:: Mutex ;
9
9
10
+ /// Abstracts a cypher query that is sent to neo4j server.
10
11
#[ derive( Clone ) ]
11
12
pub struct Query {
12
13
query : String ,
13
14
params : BoltMap ,
14
15
}
15
16
16
- /// Abstracts a cypher query that is sent to neo4j server.
17
17
impl Query {
18
18
pub fn new ( query : String ) -> Self {
19
19
Query {
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ impl Hash for BoltType {
81
81
BoltType :: Date ( t) => t. hash ( state) ,
82
82
BoltType :: Time ( t) => t. hash ( state) ,
83
83
BoltType :: LocalTime ( t) => t. hash ( state) ,
84
+ //The below types cannot be hashed
84
85
BoltType :: Path ( _) => panic ! ( "path not hashed" ) ,
85
86
BoltType :: Bytes ( _) => panic ! ( "bytes not hashed" ) ,
86
87
BoltType :: Float ( _) => panic ! ( "float not hashed" ) ,
You can’t perform that action at this time.
0 commit comments