Class Database
- Namespace
- Hegel
- Assembly
- Hegel.dll
Where a run keeps the failures it finds, to replay them first next time: the engine's default location, a directory of your choosing, or nowhere.
public sealed class Database : IEquatable<Database>
- Inheritance
-
Database
- Implements
- Inherited Members
Properties
DefaultLocation
The engine's default location (a .hegel directory found from the working directory).
public static Database DefaultLocation { get; }
Property Value
Disabled
No database: nothing is saved or replayed.
public static Database Disabled { get; }
Property Value
Path
The directory, when this is a At(string) database.
public string? Path { get; }
Property Value
Methods
At(string)
A database in the directory at path.
public static Database At(string path)
Parameters
pathstring
Returns
Equals(Database?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Database? other)
Parameters
otherDatabaseAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.