Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
// SPDX-License-Identifier: LicenseRef-Carbon-Commercial
// Carbon Enterprise file, licensed only under the Carbon Commercial License
// (packages/ee/LICENSE). Not AGPL. Running, modifying, or copying it beyond those terms requires a commercial license.
/**
* QBO query-string helpers.
*
* A leaf on purpose: `provider.ts` needs the escaper for its counterpart
* search, and `entities/shared.ts` — where this used to live — imports
* `../provider`. Importing shared from the provider would close that cycle.
* Same shape as the Rillet `references.ts` extraction, for the same reason.
*/
/** Escape a string literal for a QBO query WHERE clause (single quotes). */
export function escapeQboQueryValue(value: string): string {
return value.replace(/'/g, "\\'");
}