---
title: "quoteLiteral"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/data-table/src/lib/sql-helpers.ts#L117"
---

# 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.