A utility library for generating SQL commands programmatically, primarily targeting PostgreSQL. Version 1.1.12 supports table creation, data insertion, text search with tsquery, and table setup sequences. It generates SQL strings rather than executing them, making it useful for database migration tools, seed scripts, and query builders. Key differentiators include support for full-text search operators like `plainto_tsquery` and streaming inserts. Updates are infrequent. Ships TypeScript type definitions.
npm install extra-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to generate SQL commands for checking table existence, creating tables with data, and performing full-text search using extra-sql.
Pass the generated SQL to a database driver like `pg` or `mysql2` for execution.
Use database-specific libraries or adapt outputs for other RDBMS.
Use function calls directly; do not use `new xsql.createTable(...)`.
Monitor the package documentation for updates; consider implementing custom streaming inserts.
Use named import: `import { createTable } from 'extra-sql'` or `import * as xsql from 'extra-sql'`.Use `import` syntax or set `"type": "module"` in package.json, or use dynamic import: `const xsql = await import('extra-sql')`.Run `npm install extra-sql` or `yarn add extra-sql`.
No dependency data recorded yet.