Skip to main content

Module export

Module export 

Source
Expand description

Export/Import module for task-graph databases.

This module provides structured export functionality enabling:

  • Version control of project task data
  • Database reconstruction from exports
  • Migration between schema versions
  • Human-readable diffs in git

Modules§

diff
Diff functionality for comparing snapshots and databases.

Structs§

Snapshot
A structured export snapshot of the task-graph database.

Constants§

CURRENT_SCHEMA_VERSION
Schema version of the current database. This should be updated when the database schema changes.
EXCLUDED_TABLES
Tables excluded from export (ephemeral/runtime).
EXPORTED_TABLES
Tables that are exported (project data).
EXPORT_VERSION
Export format version (semver).

Functions§

get_table_ordering
Row ordering specifications for each exported table. These ensure deterministic ordering for git diffs.
get_table_primary_key
Get the primary key column(s) for a table. Used for identifying records during diff operations.