Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/cotton/src/utils/dialect.ts>quote

SQL Database Toolkit for Deno
Latest
function quote
import { quote } from "https://deno.land/x/cotton@v0.7.5/src/utils/dialect.ts";

Wrap a table or column name with backticks or double quotes depending on the database dialect.

Parameters

name: string

the table or column name to be wrapped

the database dialect

Returns

string