Initial commit - Event Planner application

This commit is contained in:
mberlin
2026-03-18 14:55:56 -03:00
commit 86d779eb4d
7548 changed files with 1006324 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import {
type Dictionary,
type EntityMetadata,
type EntityProperty,
type Primary,
type Transaction,
} from '@mikro-orm/core';
import { type AbstractSqlDriver } from './AbstractSqlDriver.js';
export declare class PivotCollectionPersister<Entity extends object> {
#private;
constructor(
meta: EntityMetadata<Entity>,
driver: AbstractSqlDriver,
ctx?: Transaction,
schema?: string,
loggerContext?: Dictionary,
);
enqueueUpdate(
prop: EntityProperty<Entity>,
insertDiff: Primary<Entity>[][],
deleteDiff: Primary<Entity>[][] | boolean,
pks: Primary<Entity>[],
isInitialized?: boolean,
): void;
private enqueueInsert;
private enqueueUpsert;
private createInsertStatement;
private enqueueDelete;
/**
* Build the keys and data arrays for pivot table operations.
* Handles polymorphic M:N by prepending the discriminator column/value.
*/
private buildPivotKeysAndData;
private collectStatements;
execute(): Promise<void>;
}