Skip to content

Class: RollbackEntry ​

Defined in: src/write/logger.ts:18

A logged rollback entry with metadata about a single Realm write operation. Each entry can be inspected, serialised to string, or passed to rollback methods.

This example requires Node.js.

ts
import type { RollbackEntry } from 'osu-files'

const entry = {} as RollbackEntry

return entry

Constructors ​

new RollbackEntry(raw): RollbackEntry

Defined in: src/write/logger.ts:27

Parameters ​

ParameterType
raw{ action: LogAction; after: Record<string, unknown> | null; before: Record<string, unknown> | null; entity: string; primaryKey: unknown; timestamp: number; }
raw.actionLogAction
raw.afterRecord<string, unknown> | null
raw.beforeRecord<string, unknown> | null
raw.entitystring
raw.primaryKeyunknown
raw.timestampnumber

Returns ​

RollbackEntry

This example requires Node.js.

ts
import type { RollbackEntry } from 'osu-files'

const entry = {} as RollbackEntry

return entry

Properties ​

action ​

readonly action: LogAction

Defined in: src/write/logger.ts:21


after ​

readonly after: Record<string, unknown> | null

Defined in: src/write/logger.ts:25


before ​

readonly before: Record<string, unknown> | null

Defined in: src/write/logger.ts:24


entity ​

readonly entity: string

Defined in: src/write/logger.ts:20


entryId ​

readonly entryId: string

Defined in: src/write/logger.ts:23


primaryKey ​

readonly primaryKey: string

Defined in: src/write/logger.ts:22


timestamp ​

readonly timestamp: number

Defined in: src/write/logger.ts:19

Methods ​

toString() ​

toString(): string

Defined in: src/write/logger.ts:44

Returns ​

string

This example requires Node.js.

ts
import type { RollbackEntry } from 'osu-files'

const entry = {} as RollbackEntry

return entry

Released under the MIT License.