
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
tspace-mysql
Advanced tools
Tspace MySQL is a promise-based ORM for Node.js, designed with modern TypeScript and providing type safety for schema databases.
tspace-mysql is an Object-Relational Mapping (ORM) tool designed to run seamlessly in Node.js and is fully compatible with TypeScript. It consistently supports the latest features in both TypeScript and JavaScript, providing additional functionalities to enhance your development experience.
| Feature | Description |
|---|---|
| Supports Driver | MySQL ✅ / MariaDB ✅ / Postgres / ✅ MSSQL ⏳ / SQLite3 ⏳ / Oracle ⏳ |
| Query Builder | Create flexible queries like SELECT, INSERT, UPDATE, and DELETE. You can also use raw SQL. |
| Join Clauses | Use INNER JOIN, LEFT JOIN, RIGHT JOIN, and CROSS JOIN to combine data from multiple tables. |
| Model | Provides a way to interact with database records as objects in code. You can perform create, read, update, and delete (CRUD) operations. Models also support soft deletes and relationship methods. |
| Schema | Allows you to define and manage the structure of MySQL tables, including data types and relationships. Supports migrations and validation. |
| Validation | Automatically checks data against defined rules before saving it to the database, ensuring data integrity and correctness. |
| Sync | Synchronizes the model structure with the database, updating the schema to match the model definitions automatically. |
| Soft Deletes | Marks records as deleted without removing them from the database. This allows for recovery and auditing later. |
| Relationships | Set up connections between models, such as one-to-one, one-to-many, belongs-to, and many-to-many. Supports nested relationships and checks. |
| Type Safety | Ensures that queries are safer by checking the types of statements like SELECT, ORDER BY, GROUP BY, and WHERE. |
| Metadata | Get the metadata of a Model. |
| Repository | Follows a pattern for managing database operations like SELECT, INSERT, UPDATE, and DELETE. It helps keep the code organized. |
| Decorators | Use decorators to add extra functionality or information to model classes and methods, making the code easier to read. |
| Caching | Improves performance by storing frequently requested data. Supports in-memory caching (like memory DB) and Redis for distributed caching. |
| Migrations | Use CLI commands to create models, make migrations, and apply changes to the database structure. |
| Blueprints | Create a clear layout of the database structure and how models and tables relate to each other. |
| CLI | A Command Line Interface for managing models, running migrations, executing queries, and performing other tasks using commands (like make:model, migrate, and query). |
Install with npm:
# Install tspace-mysql locally for your project
npm install tspace-mysql --save
# Install tspace-mysql globally (optional)
npm install -g tspace-mysql
# Install database drivers if needed:
# For MariaDB
npm install mariadb --save
# For PostgreSQL
npm install pg --save
# MySQL2 driver is installed by default with tspace-mysql
See the docs directory for full documentation.
FAQs
Tspace MySQL is a promise-based ORM for Node.js, designed with modern TypeScript and providing type safety for schema databases.
The npm package tspace-mysql receives a total of 50 weekly downloads. As such, tspace-mysql popularity was classified as not popular.
We found that tspace-mysql demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.