A TypeScript & JavaScript library for TyDeT Core that provides MySQL database connectivity, entity management, validation, and migration tools. Version 2.0.3 is current and actively maintained. It integrates with TyDeT Core as a service, offering a declarative schema definition for entities, relationship management (hasMany/belongsTo), and query building via helper functions like QueryFind. Differentiates from other ORMs by tight coupling with the TyDeT ecosystem and a focus on developer tooling for TypeScript projects.
npm install tydet-core-mysqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a TyDeT Core context, mounts a MySQL connector as a service, defines an entity with schema, and runs a find query.
Provide connection config object with host, user, password, and database properties when constructing MysqlConnector.
Use User.Find(mysql, condition) instead of QueryFind(mysql, table, condition).
Use ES module import syntax. Update your tsconfig to use 'module': 'ESNext' or equivalent. If you must use require, upgrade to Node.js 22 with --experimental-require-module or use dynamic import().
Ensure property names in schema objects are exactly as defined; e.g., 'type', 'primaryKey', 'required', 'default'.
new MysqlConnector({ host: 'localhost', user: 'root', password: '...', database: '...' })Use import statements. If necessary, use dynamic import: const { MysqlConnector } = await import('tydet-core-mysql');Ensure class extends MysqlEntity and call User.DefineSchema() before using static methods.