Optionaloptions: MJPostgresTranspilerOptionsCollect the BIT/BOOLEAN column registry (Table.Column pairs) declared in the
given SQL — used to build the cross-file registry from baselines before
transpiling individual migrations.
Verify the interpreter + sqlglot are available; throws with install guidance if not.
Transpile T-SQL to PostgreSQL. Statements the dialect can't emit land in unhandled.
One-shot transpiler for MemberJunction T-SQL → PostgreSQL via the MJ sqlglot dialect (
mj_postgres.py). UnlikeSqlGlotClient(a long-lived FastAPI microservice for generic dialect conversion), this invokes the dialect script directly per call — deterministic, no server lifecycle, suited to CLI batch conversion where each migration is transpiled exactly once.The dialect's contract: every input statement is either emitted as PostgreSQL or reported in
unhandled— never silently dropped.Example