Add Send to StreamTrait (#622)
* update ouroboros * Add Send to StreamTrait
This commit is contained in:
parent
a9bb998185
commit
e80aa07c7c
@ -37,7 +37,7 @@ serde = { version = "^1.0", features = ["derive"] }
|
||||
serde_json = { version = "^1", optional = true }
|
||||
sqlx = { version = "^0.5", optional = true }
|
||||
uuid = { version = "0.8", features = ["serde", "v4"], optional = true }
|
||||
ouroboros = "0.14"
|
||||
ouroboros = "0.15"
|
||||
url = "^2.2"
|
||||
once_cell = "1.8"
|
||||
|
||||
|
@ -35,7 +35,7 @@ pub trait ConnectionTrait: Sync {
|
||||
|
||||
/// Stream query results
|
||||
#[async_trait::async_trait]
|
||||
pub trait StreamTrait<'a>: Sync {
|
||||
pub trait StreamTrait<'a>: Send + Sync {
|
||||
/// Create a stream for the [QueryResult]
|
||||
type Stream: Stream<Item = Result<QueryResult, DbErr>> + Send;
|
||||
|
||||
|
@ -132,6 +132,7 @@ impl FromQueryResult for JsonValue {
|
||||
}
|
||||
Ok(JsonValue::Object(map))
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user