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 entryConstructors
new RollbackEntry(
raw):RollbackEntry
Defined in: src/write/logger.ts:27
Parameters
| Parameter | Type |
|---|---|
raw | { action: LogAction; after: Record<string, unknown> | null; before: Record<string, unknown> | null; entity: string; primaryKey: unknown; timestamp: number; } |
raw.action | LogAction |
raw.after | Record<string, unknown> | null |
raw.before | Record<string, unknown> | null |
raw.entity | string |
raw.primaryKey | unknown |
raw.timestamp | number |
Returns
RollbackEntry
This example requires Node.js.
ts
import type { RollbackEntry } from 'osu-files'
const entry = {} as RollbackEntry
return entryProperties
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