@mikro-orm/mariadb 7.0.2-dev.13 → 7.0.2-dev.15

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.
@@ -3,6 +3,7 @@ import { MySqlDriver, type SqlEntityManager } from '@mikro-orm/mysql';
3
3
  import { MariaDbPlatform } from './MariaDbPlatform.js';
4
4
  import { MariaDbQueryBuilder } from './MariaDbQueryBuilder.js';
5
5
  import { MariaDbMikroORM } from './MariaDbMikroORM.js';
6
+ /** Database driver for MariaDB, extending the MySQL driver with MariaDB-specific behavior. */
6
7
  export declare class MariaDbDriver extends MySqlDriver {
7
8
  readonly platform: MariaDbPlatform;
8
9
  constructor(config: Configuration);
package/MariaDbDriver.js CHANGED
@@ -3,6 +3,7 @@ import { MySqlDriver } from '@mikro-orm/mysql';
3
3
  import { MariaDbPlatform } from './MariaDbPlatform.js';
4
4
  import { MariaDbQueryBuilder } from './MariaDbQueryBuilder.js';
5
5
  import { MariaDbMikroORM } from './MariaDbMikroORM.js';
6
+ /** Database driver for MariaDB, extending the MySQL driver with MariaDB-specific behavior. */
6
7
  export class MariaDbDriver extends MySqlDriver {
7
8
  constructor(config) {
8
9
  super(config);
@@ -1,7 +1,9 @@
1
1
  import { type AnyEntity, type EntityClass, type EntitySchema, MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core';
2
2
  import type { SqlEntityManager } from '@mikro-orm/mysql';
3
3
  import { MariaDbDriver } from './MariaDbDriver.js';
4
+ /** Configuration options for the MariaDB driver. */
4
5
  export type MariaDbOptions<EM extends SqlEntityManager<MariaDbDriver> = SqlEntityManager<MariaDbDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> = Partial<Options<MariaDbDriver, EM, Entities>>;
6
+ /** Creates a type-safe configuration object for the MariaDB driver. */
5
7
  export declare function defineMariaDbConfig<EM extends SqlEntityManager<MariaDbDriver> = SqlEntityManager<MariaDbDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: Partial<Options<MariaDbDriver, EM, Entities>>): Partial<Options<MariaDbDriver, EM, Entities>>;
6
8
  /**
7
9
  * @inheritDoc
@@ -1,5 +1,6 @@
1
1
  import { defineConfig, MikroORM, } from '@mikro-orm/core';
2
2
  import { MariaDbDriver } from './MariaDbDriver.js';
3
+ /** Creates a type-safe configuration object for the MariaDB driver. */
3
4
  export function defineMariaDbConfig(options) {
4
5
  return defineConfig({ driver: MariaDbDriver, ...options });
5
6
  }
@@ -1,5 +1,6 @@
1
1
  import { MySqlPlatform, type TransformContext } from '@mikro-orm/mysql';
2
2
  import { MariaDbSchemaHelper } from './MariaDbSchemaHelper.js';
3
+ /** Platform implementation for MariaDB. */
3
4
  export declare class MariaDbPlatform extends MySqlPlatform {
4
5
  protected readonly schemaHelper: MariaDbSchemaHelper;
5
6
  convertJsonToDatabaseValue(value: unknown, context?: TransformContext): unknown;
@@ -1,5 +1,6 @@
1
1
  import { MySqlPlatform } from '@mikro-orm/mysql';
2
2
  import { MariaDbSchemaHelper } from './MariaDbSchemaHelper.js';
3
+ /** Platform implementation for MariaDB. */
3
4
  export class MariaDbPlatform extends MySqlPlatform {
4
5
  schemaHelper = new MariaDbSchemaHelper(this);
5
6
  convertJsonToDatabaseValue(value, context) {
@@ -1,5 +1,6 @@
1
1
  import { type AbstractSqlConnection, type CheckDef, type Column, type IndexDef, type DatabaseSchema, type Table, MySqlSchemaHelper } from '@mikro-orm/mysql';
2
2
  import { type Dictionary, type Type } from '@mikro-orm/core';
3
+ /** Schema introspection helper for MariaDB. */
3
4
  export declare class MariaDbSchemaHelper extends MySqlSchemaHelper {
4
5
  protected appendMySqlIndexSuffix(sql: string, index: IndexDef): string;
5
6
  loadInformationSchema(schema: DatabaseSchema, connection: AbstractSqlConnection, tables: Table[]): Promise<void>;
@@ -1,4 +1,5 @@
1
1
  import { MySqlSchemaHelper, } from '@mikro-orm/mysql';
2
+ /** Schema introspection helper for MariaDB. */
2
3
  export class MariaDbSchemaHelper extends MySqlSchemaHelper {
3
4
  appendMySqlIndexSuffix(sql, index) {
4
5
  // MariaDB uses IGNORED instead of MySQL's INVISIBLE keyword
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/mariadb",
3
- "version": "7.0.2-dev.13",
3
+ "version": "7.0.2-dev.15",
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
  "keywords": [
6
6
  "data-mapper",
@@ -47,14 +47,14 @@
47
47
  "copy": "node ../../scripts/copy.mjs"
48
48
  },
49
49
  "dependencies": {
50
- "@mikro-orm/mysql": "7.0.2-dev.13",
50
+ "@mikro-orm/mysql": "7.0.2-dev.15",
51
51
  "kysely": "0.28.11"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@mikro-orm/core": "^7.0.1"
55
55
  },
56
56
  "peerDependencies": {
57
- "@mikro-orm/core": "7.0.2-dev.13"
57
+ "@mikro-orm/core": "7.0.2-dev.15"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">= 22.17.0"