Skip to main content

quote_identifier

Function quote_identifier 

Source
pub fn quote_identifier(id: &str, backend: Backend) -> String
Expand description

Backend-aware identifier quoting:

  • Postgres / SQLite / Oracle / MSSQL: "name" (ANSI; MSSQL also accepts [name], but ANSI quotes work with QUOTED_IDENTIFIER ON, the default).
  • MySQL: backticks. The ANSI form requires ANSI_QUOTES SQL_MODE which ferrule does not assume.

Public so dump.rs (and future schema-aware modules) can route identifier quoting through a single backend-aware implementation.