Skip to main content

saveSnapshot

@quik/database


@quik/database / saveSnapshot

Function: saveSnapshot()

saveSnapshot(filePath, snapshot): void

Defined in: database/src/migrations/snapshot/store.ts:42

Writes a schema snapshot to disk, creating the containing directory if needed.

Parameters​

filePath​

string

Path to the snapshot JSON file.

snapshot​

QSchemaSnapshot

Snapshot to write.

Returns​

void