Skip to main content
Home
This release is 2 versions behind 0.1.1 — the latest version of @nodef/extra-pg-english. Jump to latest

Built and signed on GitHub Actions

Converts English query to Informal/Format SQL SELECT.

This package works with Node.js, DenoIt is unknown whether this package works with Cloudflare Workers, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
2 weeks ago (0.0.2)
function convertToFormalSQL
convertToFormalSQL(
txt: string,
fn: ResolutionFunction,
ths?: unknown,
opt?: Record<string, unknown>,
): Promise<string>

Convert informal SQL SELECT statements into formal SQL.

Parameters

SQL text to convert

fn: ResolutionFunction

function to resolve references fn(table, type, hint, from)

optional
ths: unknown = null

this argument for the function

optional
opt: Record<string, unknown>

options for the conversion

Return Type

converted SQL string (promise)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@nodef/extra-pg-english

Import symbol

import { convertToFormalSQL } from "@nodef/extra-pg-english";
or

Import directly with a jsr specifier

import { convertToFormalSQL } from "jsr:@nodef/extra-pg-english";

Add Package

pnpm i jsr:@nodef/extra-pg-english
or (using pnpm 10.8 or older)
pnpm dlx jsr add @nodef/extra-pg-english

Import symbol

import { convertToFormalSQL } from "@nodef/extra-pg-english";

Add Package

yarn add jsr:@nodef/extra-pg-english
or (using Yarn 4.8 or older)
yarn dlx jsr add @nodef/extra-pg-english

Import symbol

import { convertToFormalSQL } from "@nodef/extra-pg-english";

Add Package

npx jsr add @nodef/extra-pg-english

Import symbol

import { convertToFormalSQL } from "@nodef/extra-pg-english";

Add Package

bunx jsr add @nodef/extra-pg-english

Import symbol

import { convertToFormalSQL } from "@nodef/extra-pg-english";