joist-core 2.3.0-next.116 → 2.3.0-next.117
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.
package/build/EntityManager.cjs
CHANGED
|
@@ -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.
|
|
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);
|