migrate-pg-to-sqlite

command
v1.801.79 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Command migrate-pg-to-sqlite copies a legacy `hanzo_cloud` PostgreSQL database into per-(org, user) SQLite files served by the Hanzo cloud orchestrator (HIP-0106).

The migrator is introspective: it reads information_schema for the table set and columns, then routes each row to its destination file based on org_id / user_id columns (or canonical fallbacks). Rows with neither column land under /<root>/_global/_org/cloud.sqlite so the operator can triage rather than silently dropping them.

Usage:

migrate-pg-to-sqlite \
    --src 'postgres://cloud:pass@postgres.hanzo.svc:5432/hanzo_cloud?sslmode=disable' \
    --dst /data

Per ~/work/hanzo/CLAUDE_PG_TO_SQLITE_MIGRATION.md (service #4 — cloud).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL