---
title: quoteLiteral
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/data-table/src/lib/sql-helpers.ts#L98
---

# quoteLiteral

## Summary

Converts a JavaScript value into a SQL literal string.

## Signature

```ts
function quoteLiteral(
  value: unknown,
  options: { booleansAsIntegers?: boolean },
): string;

```

## Parameters

### `value`

Value to serialize.

### `options`

Serialization options.

## Returns

SQL literal text.