@mikro-orm/mysql
Advanced tools
| import { type ControlledTransaction, MysqlDialect } from 'kysely'; | ||
| import { type PoolOptions } from 'mysql2'; | ||
| import { AbstractSqlConnection, type TransactionEventBroadcaster } from '@mikro-orm/sql'; | ||
| /** MySQL database connection using the `mysql2` driver. */ | ||
| export declare class MySqlConnection extends AbstractSqlConnection { | ||
@@ -5,0 +6,0 @@ createKyselyDialect(overrides: PoolOptions): MysqlDialect; |
| import { MysqlDialect } from 'kysely'; | ||
| import { createPool } from 'mysql2'; | ||
| import { Utils, AbstractSqlConnection } from '@mikro-orm/sql'; | ||
| /** MySQL database connection using the `mysql2` driver. */ | ||
| export class MySqlConnection extends AbstractSqlConnection { | ||
@@ -5,0 +6,0 @@ createKyselyDialect(overrides) { |
+1
-0
@@ -6,2 +6,3 @@ import type { Configuration, Constructor, EntityDictionary, EntityName, FilterQuery, NativeInsertUpdateManyOptions, QueryResult, UpsertManyOptions } from '@mikro-orm/core'; | ||
| import { MySqlPlatform } from './MySqlPlatform.js'; | ||
| /** Database driver for MySQL. */ | ||
| export declare class MySqlDriver extends AbstractSqlDriver<MySqlConnection, MySqlPlatform> { | ||
@@ -8,0 +9,0 @@ private autoIncrementIncrement?; |
+1
-0
@@ -5,2 +5,3 @@ import { AbstractSqlDriver, Utils } from '@mikro-orm/sql'; | ||
| import { MySqlPlatform } from './MySqlPlatform.js'; | ||
| /** Database driver for MySQL. */ | ||
| export class MySqlDriver extends AbstractSqlDriver { | ||
@@ -7,0 +8,0 @@ autoIncrementIncrement; |
| import { type AnyEntity, type EntityClass, type EntitySchema, MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core'; | ||
| import type { SqlEntityManager } from '@mikro-orm/sql'; | ||
| import { MySqlDriver } from './MySqlDriver.js'; | ||
| /** Configuration options for the MySQL driver. */ | ||
| export type MySqlOptions<EM extends SqlEntityManager<MySqlDriver> = SqlEntityManager<MySqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> = Partial<Options<MySqlDriver, EM, Entities>>; | ||
| /** Creates a type-safe configuration object for the MySQL driver. */ | ||
| export declare function defineMySqlConfig<EM extends SqlEntityManager<MySqlDriver> = SqlEntityManager<MySqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: Partial<Options<MySqlDriver, EM, Entities>>): Partial<Options<MySqlDriver, EM, Entities>>; | ||
@@ -6,0 +8,0 @@ /** |
+1
-0
| import { defineConfig, MikroORM, } from '@mikro-orm/core'; | ||
| import { MySqlDriver } from './MySqlDriver.js'; | ||
| /** Creates a type-safe configuration object for the MySQL driver. */ | ||
| export function defineMySqlConfig(options) { | ||
@@ -4,0 +5,0 @@ return defineConfig({ driver: MySqlDriver, ...options }); |
| import { BaseMySqlPlatform } from '@mikro-orm/sql'; | ||
| /** Platform implementation for MySQL. */ | ||
| export declare class MySqlPlatform extends BaseMySqlPlatform { | ||
| escape(value: any): string; | ||
| } |
+1
-0
| import SqlString from 'sqlstring'; | ||
| import { BaseMySqlPlatform } from '@mikro-orm/sql'; | ||
| /** Platform implementation for MySQL. */ | ||
| export class MySqlPlatform extends BaseMySqlPlatform { | ||
@@ -4,0 +5,0 @@ escape(value) { |
+3
-3
| { | ||
| "name": "@mikro-orm/mysql", | ||
| "version": "7.0.2-dev.13", | ||
| "version": "7.0.2-dev.14", | ||
| "description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.", | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
| "dependencies": { | ||
| "@mikro-orm/sql": "7.0.2-dev.13", | ||
| "@mikro-orm/sql": "7.0.2-dev.14", | ||
| "kysely": "0.28.11", | ||
@@ -60,3 +60,3 @@ "mysql2": "3.19.1", | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "7.0.2-dev.13" | ||
| "@mikro-orm/core": "7.0.2-dev.14" | ||
| }, | ||
@@ -63,0 +63,0 @@ "engines": { |
21805
2.17%206
4.57%+ Added
+ Added
- Removed
- Removed
Updated