@mikro-orm/sql 7.0.0-dev.100 → 7.0.0-dev.102

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import { MySqlExceptionConverter } from './MySqlExceptionConverter.js';
4
4
  import { AbstractSqlPlatform } from '../../AbstractSqlPlatform.js';
5
5
  import type { IndexDef } from '../../typings.js';
6
6
  import { MySqlNativeQueryBuilder } from './MySqlNativeQueryBuilder.js';
7
- export declare class MySqlPlatform extends AbstractSqlPlatform {
7
+ export declare class BaseMySqlPlatform extends AbstractSqlPlatform {
8
8
  protected readonly schemaHelper: MySqlSchemaHelper;
9
9
  protected readonly exceptionConverter: MySqlExceptionConverter;
10
10
  protected readonly ORDER_BY_NULLS_TRANSLATE: {
@@ -41,6 +41,5 @@ export declare class MySqlPlatform extends AbstractSqlPlatform {
41
41
  getFullTextWhereClause(): string;
42
42
  getFullTextIndexExpression(indexName: string, schemaName: string | undefined, tableName: string, columns: SimpleColumnMeta[]): string;
43
43
  getOrderByExpression(column: string, direction: string): string[];
44
- escape(value: any): string;
45
44
  getDefaultClientUrl(): string;
46
45
  }
@@ -1,10 +1,9 @@
1
- import SqlString from 'sqlstring';
2
1
  import { Utils, QueryOrder, DecimalType, DoubleType, } from '@mikro-orm/core';
3
2
  import { MySqlSchemaHelper } from './MySqlSchemaHelper.js';
4
3
  import { MySqlExceptionConverter } from './MySqlExceptionConverter.js';
5
4
  import { AbstractSqlPlatform } from '../../AbstractSqlPlatform.js';
6
5
  import { MySqlNativeQueryBuilder } from './MySqlNativeQueryBuilder.js';
7
- export class MySqlPlatform extends AbstractSqlPlatform {
6
+ export class BaseMySqlPlatform extends AbstractSqlPlatform {
8
7
  schemaHelper = new MySqlSchemaHelper(this);
9
8
  exceptionConverter = new MySqlExceptionConverter();
10
9
  ORDER_BY_NULLS_TRANSLATE = {
@@ -111,9 +110,6 @@ export class MySqlPlatform extends AbstractSqlPlatform {
111
110
  ret.push(`${column} ${dir.replace(/(\s|nulls|first|last)*/gi, '')}`);
112
111
  return ret;
113
112
  }
114
- escape(value) {
115
- return SqlString.escape(value, true, this.timezone);
116
- }
117
113
  getDefaultClientUrl() {
118
114
  return 'mysql://root@127.0.0.1:3306';
119
115
  }
@@ -1,4 +1,4 @@
1
1
  export * from './MySqlExceptionConverter.js';
2
2
  export * from './MySqlSchemaHelper.js';
3
- export * from './MySqlPlatform.js';
3
+ export * from './BaseMySqlPlatform.js';
4
4
  export * from './MySqlNativeQueryBuilder.js';
@@ -1,4 +1,4 @@
1
1
  export * from './MySqlExceptionConverter.js';
2
2
  export * from './MySqlSchemaHelper.js';
3
- export * from './MySqlPlatform.js';
3
+ export * from './BaseMySqlPlatform.js';
4
4
  export * from './MySqlNativeQueryBuilder.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/sql",
3
- "version": "7.0.0-dev.100",
3
+ "version": "7.0.0-dev.102",
4
4
  "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.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -56,6 +56,6 @@
56
56
  "@mikro-orm/core": "^6.6.2"
57
57
  },
58
58
  "peerDependencies": {
59
- "@mikro-orm/core": "7.0.0-dev.100"
59
+ "@mikro-orm/core": "7.0.0-dev.102"
60
60
  }
61
61
  }