pub struct Odb<'repo> { /* fields omitted */ }
A structure to represent a git object database
Creates an object database without any backends.
Create object database reading stream.
Note that most backends do not support streaming reads because they store their objects as compressed/delta'ed blobs.
If the backend does not support streaming reads, use the read
method instead.
Create object database writing stream.
The type and final length of the object must be specified when opening the stream.
If the backend does not support streaming writes, use the write
method instead.
Iterate over all objects in the object database.s
Read an object from the database.
Reads the header of an object from the database
without reading the full content.
Write an object to the database.
Checks if the object database has an object.
Potentially finds an object that starts with the given prefix.
Refresh the object database.
This should never be needed, and is
provided purely for convenience.
The object database will automatically
refresh when an object is not found when
requested.
Adds an alternate disk backend to the object database.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static