---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/cip](../index.md) / escapeSqlString

# Function: escapeSqlString()

> **escapeSqlString**(`value`): `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/cip/sql.ts:49](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/0c642abce71b645ae9df3c6046c2bf8396a2845c/packages/b2c-tooling-sdk/src/operations/cip/sql.ts#L49)

Escapes single quotes in a value destined for a single-quoted SQL string literal.

## Parameters

### value

`string`

Raw string value to escape

## Returns

`string`

The value with embedded single quotes doubled per SQL string-literal rules
