- Preparing search index...
- The search index is not available
Deepkit
Function prepareBatchUpdate
- prepareBatchUpdate(platform: DefaultPlatform, classSchema: ReflectionClass<any>, changeSets: DatabasePersistenceChangeSet<any>[], options?: {
setNamesWithTableName?: true;
}): undefined | {
aggregateSelects: {
[name: string]: {
id: any;
sql: string;
}[];
};
assignReturning: {
[name: string]: {
item: any;
names: string[];
};
};
changedFields: string[];
originPkField: string;
originPkName: string;
pkField: string;
pkName: string;
primaryKeys: any[];
setNames: string[];
setReturning: {
[name: string]: 1;
};
tableName: string;
values: {
[name: string]: any[];
};
valuesSet: {
[name: string]: any[];
};
}
-
Parameters
-
-
classSchema: ReflectionClass<any>
-
changeSets: DatabasePersistenceChangeSet<any>[]
-
options: {
setNamesWithTableName?: true;
} = {}
-
Optional
setNamesWithTableName?: true
Returns undefined | {
aggregateSelects: {
[name: string]: {
id: any;
sql: string;
}[];
};
assignReturning: {
[name: string]: {
item: any;
names: string[];
};
};
changedFields: string[];
originPkField: string;
originPkName: string;
pkField: string;
pkName: string;
primaryKeys: any[];
setNames: string[];
setReturning: {
[name: string]: 1;
};
tableName: string;
values: {
[name: string]: any[];
};
valuesSet: {
[name: string]: any[];
};
}