
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
tydet-core-mysql
Advanced tools
TyDeT Core MySQL is a Typescript & Javascript library for TyDeT Core to handle connections with a MySQL Database.
TyDeT Core MySQL is a Typescript & Javascript library for TyDeT Core to handle a connection to a MySQL database.
TyDeT (Typescript Developer Tools) Core MySQL is a module for TyDeT Core to handle a connection with a MySQL Database and managing the entities, validations, migrations and other tools.
This is a Node.js module available through the npm registry. Installation is done using the npm install command:
npm install tydet-core tydet-core-mysql
It is required to install TyDeT Core to use this module.
import { Context } from 'tydet-core';
import { MysqlConnector, MysqlEntity, QueryFind } from 'tydet-core-mysql';
// Add connector as Service
let app = new Context()
let mysql = new MysqlConnector()
await app.mountService("mysql", mysql)
// Execute queries
let query = QueryFind(mysql, "users", {firstName: "My name"})
let data = await mysql.run(query)
// Define entities
class User extends MysqlEntity {
id: number
firstName: string
lastName: string
}
User.DefineSchema("users", {
id: {
type: MysqlDataType.INT,
primaryKey: true
},
firstName: {
type: MysqlDataType.VARCHAR,
required: true
},
lastName: MysqlDataType.VARCHAR
})
class Comment extends MysqlEntity {
id: number
message: string
userId: number
createdAt: Date
user?: User
}
Comment.DefineSchema("comments", {
id: {
type: MysqlDataType.INT,
primaryKey: true
},
message: {
type: MysqlDataType.VARCHAR,
required: true
},
userId: MysqlDataType.INT,
createdAt: {
type: MysqlDataType.DATETIME,
default: MysqlDefaultValue.NOW
}
})
User.hasMany(Comment, "userId")
Comment.belongsTo(User, "userId", "user")
let users = await User.Find(mysql, {firstName: "My name"})
Check the docs for more details about the service.
Learn about the latest improvements.
We'd love for you to contribute to TyAPI Core Mysql and help make it even better than it is today! Find out how you can contribute here.
FAQs
TyDeT Core MySQL is a Typescript & Javascript library for TyDeT Core to handle connections with a MySQL Database.
We found that tydet-core-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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.