mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
refactor: Rename SubjectTopoligicalSorter as SubjectTopologicalSorter (#11074)
This commit is contained in:
parent
7bea198b9b
commit
340f933f6d
@ -1,6 +1,6 @@
|
||||
import { QueryRunner } from "../query-runner/QueryRunner"
|
||||
import { Subject } from "./Subject"
|
||||
import { SubjectTopoligicalSorter } from "./SubjectTopoligicalSorter"
|
||||
import { SubjectTopologicalSorter } from "./SubjectTopologicalSorter"
|
||||
import { SubjectChangedColumnsComputer } from "./SubjectChangedColumnsComputer"
|
||||
import { SubjectWithoutIdentifierError } from "../error/SubjectWithoutIdentifierError"
|
||||
import { SubjectRemovedAndUpdatedError } from "../error/SubjectRemovedAndUpdatedError"
|
||||
@ -131,7 +131,7 @@ export class SubjectExecutor {
|
||||
|
||||
// execute all insert operations
|
||||
// console.time(".insertion");
|
||||
this.insertSubjects = new SubjectTopoligicalSorter(
|
||||
this.insertSubjects = new SubjectTopologicalSorter(
|
||||
this.insertSubjects,
|
||||
).sort("insert")
|
||||
await this.executeInsertOperations()
|
||||
@ -150,7 +150,7 @@ export class SubjectExecutor {
|
||||
|
||||
// make sure our remove subjects are sorted (using topological sorting) when multiple entities are passed for the removal
|
||||
// console.time(".removal");
|
||||
this.removeSubjects = new SubjectTopoligicalSorter(
|
||||
this.removeSubjects = new SubjectTopologicalSorter(
|
||||
this.removeSubjects,
|
||||
).sort("delete")
|
||||
await this.executeRemoveOperations()
|
||||
|
||||
@ -6,7 +6,7 @@ import { TypeORMError } from "../error"
|
||||
* Orders insert or remove subjects in proper order (using topological sorting)
|
||||
* to make sure insert or remove operations are executed in a proper order.
|
||||
*/
|
||||
export class SubjectTopoligicalSorter {
|
||||
export class SubjectTopologicalSorter {
|
||||
// -------------------------------------------------------------------------
|
||||
// Public Properties
|
||||
// -------------------------------------------------------------------------
|
||||
Loading…
x
Reference in New Issue
Block a user