pub struct Journal { /* private fields */ }
This is supported on crate feature sqlite only.
Expand description

The Journal is the audit log of all changes to a zone after initial creation.

Implementations

Constructs a new Journal, attaching to the specified Sqlite Connection

Constructs a new Journal opening a Sqlite connection to the file at the specified path

Returns a reference to the Sqlite Connection

Returns the current schema version of the journal

this returns an iterator from the beginning of time, to be used to recreate an authority

Inserts a record, this is an append only operation.

Records should never be posthumously modified. The message will be serialized into the. the first message serialized to the journal, should be a single AXFR of the entire zone, this will be used as a starting point to reconstruct the zone.

Argument
  • record - will be serialized into the journal

Inserts a set of records into the Journal, a convenience method for insert_record

Selects a record from the given row_id.

This allows for the entire set of records to be iterated through, by starting at 0, and incrementing each subsequent row.

Arguments
  • row_id - the row_id can either be exact, or start at 0 to get the earliest row in the list.

selects the current schema version of the journal DB, returns -1 if there is no schema

Arguments
  • conn - db connection to use

initializes the schema for the Journal

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more