{"version":3,"file":"d1-planning.mjs","names":[],"sources":["../../src/internal/d1-planning.ts"],"sourcesContent":["import type * as SqlClient from \"effect/sql/SqlClient\";\nimport type * as Statement from \"effect/sql/Statement\";\n\n/** A false predicate aborts the current D1 batch; checking its result after\n * batch completion would be too late to roll the protected mutation back. */\nexport const sqlBatchAssertion = (sql: SqlClient.SqlClient, condition: Statement.Fragment) =>\n  sql`select case when ${condition} then 1 else json_extract('[]', '$[auth-batch-precondition]') end as valid`;\n"],"mappings":";;;AAKA,MAAa,qBAAqB,KAA0B,cAC1D,GAAG,oBAAoB,UAAU"}