UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

15 lines (14 loc) 634 B
import type { AbstractServiceOptions, Accountability, Snapshot, SnapshotDiff, SnapshotDiffWithHash, SnapshotWithHash } from '@directus/types'; import type { Knex } from 'knex'; export declare class SchemaService { knex: Knex; accountability: Accountability | null; constructor(options: Omit<AbstractServiceOptions, 'schema'>); snapshot(): Promise<Snapshot>; apply(payload: SnapshotDiffWithHash): Promise<void>; diff(snapshot: Snapshot, options?: { currentSnapshot?: Snapshot; force?: boolean; }): Promise<SnapshotDiff | null>; getHashedSnapshot(snapshot: Snapshot): SnapshotWithHash; }