joist-core 2.3.0-next.116 → 2.3.0-next.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -314,7 +314,7 @@ var EntityManager = class EntityManager {
314
314
  const em = this;
315
315
  return (async function execute() {
316
316
  if (require_queries_sql_execute.isMutation(statement)) {
317
- em.__api.checkWritesAllowed();
317
+ if (em.mode === "read-only") throw new ReadOnlyError();
318
318
  if (em.mode === "in-memory-writes") require_utils.fail("SQL mutations do not support in-memory-writes mode");
319
319
  } else em.#assertFindAllowed("execute");
320
320
  const plan = require_queries_sql_execute.parseStatement(statement);