You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd further more like to use a database stored on an S3 bucket, using crate s3reader right away, which implements the read trait. Therefore it would be really helpful, if Database::open() would support specifying a class implementing the std::io::Read trait, as such (or similar):
@ahrensburger in the meantime, you can also use the parse(data: &[u8], key: DatabaseKey) function, which I introduced when fixing the first bug you reported.
@ahrensburger are you sure this isn't already possible? The Database::open signature takes source: &mut dyn std::io::Read, which should be compatible with the S3Reader.
Thanks again for fixing the bug I ran into. :-)
I'd further more like to use a database stored on an S3 bucket, using crate s3reader right away, which implements the read trait. Therefore it would be really helpful, if Database::open() would support specifying a class implementing the std::io::Read trait, as such (or similar):
pub fn open<R: std::io::Read>(
source: &mut dyn R,
key: DatabaseKey,
) -> Result<Database, DatabaseOpenError> {
...
}
I didn't compile and test it, but I hope you got my point. :-)
The text was updated successfully, but these errors were encountered: