quoteInfluxqlIdentifier (influxdb/influxql-quote.ts)

libredb-studio · src/lib/db/providers/timeseries/influxdb/influxql-quote.ts · typescript · MIT
database

* InfluxQL quoting (C6, E6). Pure, and shipped to the browser. Every InfluxQL text Studio writes (tree reads, introspection, completion inserts, Generate Query) builds a name with `quoteInfluxqlIdentifier`, a literal with `quoteInfluxqlString` and a measurement source with `influ

// Source: https://github.com/libredb/libredb-studio | License: MIT | Copyright 2025 SEKOYA GRUP BİLİŞİM VE TEKNOLOJİ LİMİTED ŞİRKETİ
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * InfluxQL quoting (C6, E6).
 *
 * Pure, and shipped to the browser. Every InfluxQL text Studio writes (tree reads, introspection,
 * completion inserts, Generate Query) builds a name with `quoteInfluxqlIdentifier`, a literal with
 * `quoteInfluxqlString` and a measurement source with `influxqlSource`, so what the user clicked
 * reaches the server as one token holding exactly that value. A name is always double-quoted, even
 * when a bare word would do, so a name that happens to be a keyword needs no special case.
 *
 * The influxql scanner knows exactly four escapes inside a quoted token

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key