Table of Contents

Class DatabaseIdentity

Namespace
Typhon.Engine
Assembly
Typhon.Engine.dll

Identity of the scanned database, as read from its own bytes.

public sealed class DatabaseIdentity
Inheritance
DatabaseIdentity
Inherited Members

Constructors

DatabaseIdentity()

public DatabaseIdentity()

Properties

CheckpointLsn

Last checkpoint LSN recorded in the bootstrap dictionary, or 0.

public long CheckpointLsn { get; init; }

Property Value

long

CleanShutdown

Whether the previous process recorded a clean shutdown. false means recovery would run on open.

public bool CleanShutdown { get; init; }

Property Value

bool

FormatRevision

On-disk format revision recorded on page 0.

public int FormatRevision { get; init; }

Property Value

int

MetaGeneration

Generation of the selected meta slot.

public ulong MetaGeneration { get; init; }

Property Value

ulong

MetaSlot

Which physical slot of the page-0 A/B meta pair held the selected content, or -1 when neither was valid.

public int MetaSlot { get; init; }

Property Value

int

Name

Database name recorded on page 0, or null when unreadable.

public string Name { get; init; }

Property Value

string

PageCount

Total pages in the data file.

public int PageCount { get; init; }

Property Value

int

SizeBytes

Size of the data file in bytes.

public long SizeBytes { get; init; }

Property Value

long

WalBytes

Total bytes across the WAL segment files.

public long WalBytes { get; init; }

Property Value

long

WalSegmentCount

Number of WAL segment files present beside the data file.

public int WalSegmentCount { get; init; }

Property Value

int