Gathering detailed insights and metrics for extra-sql.web
Gathering detailed insights and metrics for extra-sql.web
Gathering detailed insights and metrics for extra-sql.web
Gathering detailed insights and metrics for extra-sql.web
Generates SQL commands for creating tables, inserting data, and performing operations like text search and matching in PostgreSQL databases.
npm install extra-sql.web
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
1 Stars
1 Commits
1 Forks
2 Watchers
3 Branches
1 Contributors
Updated on May 03, 2025
Latest Version
1.1.12
Package Id
extra-sql.web@1.1.12
Unpacked Size
26.45 kB
Size
7.25 kB
File Count
6
NPM Version
10.9.2
Node Version
22.14.0
Published on
Apr 08, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
SQL is designed for managing or stream processing data in an RDBMS. This package provides a set of functions to generate SQL commands for creating tables, inserting data, and performing various operations, including text search and matching, on SQL databases (currently PostgreSQL).
▌ 📦 Node.js, 🌐 Web, 📜 Files, 📰 Docs, 📘 Wiki.
1import * as xsql from 'extra-sql'; 2 3xsql.tableExists('food'); 4// → SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name='food'); 5 6xsql.setupTable('food', {code: 'TEXT', name: 'TEXT'}, 7 [{code: 'F1', name: 'Mango'}, {code: 'F2', name: 'Lychee'}]); 8// → CREATE TABLE IF NOT EXISTS "food" ("code" TEXT, "name" TEXT); 9// → INSERT INTO "food" ("code", "name") VALUES 10// → ($$F1$$, $$Mango$$), 11// → ($$F2$$, $$Lychee$$); 12 13 14xsql.selectTsquery('columns', 'total fat'); 15// → SELECT * FROM "columns" WHERE "tsvector" @@ plainto_tsquery('total fat'); 16 17xsql.matchTsquery('columns', ['total', 'fat']); 18// → SELECT *, '2'::INT AS "matchTsquery" FROM "columns" WHERE "tsvector" @@ plainto_tsquery('total fat') UNION ALL 19// → SELECT *, '1'::INT AS "matchTsquery" FROM "columns" WHERE "tsvector" @@ plainto_tsquery('total');
Property | Description |
---|---|
createTable | Generate SQL command for CREATE TABLE. |
createIndex | Generate SQL command for CREATE INDEX. |
createView | Generate SQL command for CREATE VIEW. |
insertInto | Generates SQL command for INSERT INTO using an array of values. |
setupTable | Generate SQL commands to set up a table (create, insert, index). |
tableExists | Generate SQL command to check if a table exists. |
selectTsquery | Generate SQL command for SELECT with tsquery. |
matchTsquery | Generate SQL query for matching words with tsquery. |
insertIntoStream | Generate SQL command for INSERT INTO using a stream of values. |
setupTableIndex | Generate SQL commands for setting up table indexes and views. |
createTableData | Generate SQL command for creating a table with data. |
updateData | Generate SQL command for updating data. |
selectData | Generate SQL command for selecting data. |
insertIntoData | Generate SQL command for inserting data. |
deleteData | Generate SQL command for deleting data. |
OPERATORS | Set of operators in SQL. {field} |
OPERAND_COUNT | Number of operands used with an SQL operator. {field} |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
no SAST tool detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More