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

# quoteTableRef

## Summary

Quotes a `{ schema?, name }` table reference using a dialect quote function.

## Signature

```ts
function quoteTableRef(table: TableRef, quoteIdentifier: QuoteIdentifier): string

```

## Parameters

### `table`

Table reference to quote.

### `quoteIdentifier`

Dialect-specific identifier quote function.

## Returns

Quoted table reference.