Skip to main content
Home
This release is 1 version 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.1.0)
function convertToInformalSQL
convertToInformalSQL(
txt: string,
fn: EntityTestFunction,
ths?: unknown,
opt?: InformalizeOptions,
): Promise<string>

Process a string of english text to generate an informal SQL-like query.

Parameters

english text to process

fn: EntityTestFunction

entity test function fn(words)

optional
ths: unknown = null

this argument

optional
opt: InformalizeOptions

optional parameters, including table name and column hints

Return Type

generated SQL-like query 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 { convertToInformalSQL } from "@nodef/extra-pg-english";
or

Import directly with a jsr specifier

import { convertToInformalSQL } 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 { convertToInformalSQL } 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 { convertToInformalSQL } from "@nodef/extra-pg-english";

Add Package

npx jsr add @nodef/extra-pg-english

Import symbol

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

Add Package

bunx jsr add @nodef/extra-pg-english

Import symbol

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