SQL Super is a JavaScript library (v3.0.1) that provides a simplified API for performing basic SQL CRUD operations on MySQL and PostgreSQL databases without writing raw SQL queries. It offers promise- and callback-based methods for connecting, disconnecting, listing/creating/dropping databases and tables, and inserting, reading, updating, and deleting rows. The package abstracts away SQL syntax for common tasks but lacks TypeScript support, advanced querying features, or connection pooling (for MySQL). It is intended for beginners or small projects needing quick database interactions.
npm install sql-superNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates MySQL connection, table creation, CRUD operations, and disconnection using async/await.
Ensure the correct order: host, user, password, database.
If using TypeScript, create a declaration file or use a different library with TS support.
Stick to promise-based usage with async/await for consistency.
Always pass condition strings as SQL fragments, e.g., "column = value".
Sanitize all inputs manually or consider using a library with prepared statements for production use.
Run 'npm install mysql2' in your project.
Run 'npm install pg' in your project.
Use 'const sqlsuper = require('sql-super');' instead of 'import sqlsuper from 'sql-super';'.