lambdaorm-base
Advanced tools
Comparing version 1.2.2 to 1.2.3
{ | ||
"name": "lambdaorm-base", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "ORM", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>", |
@@ -24,3 +24,3 @@ import { Schema, SchemaData, Dialect, Mapping, MatchOptions, InitializeSchemaArgs, SchemaInfo } from '../domain'; | ||
introspect(schema: Schema, data: any | any[], name: string): SchemaData; | ||
updateFromMapping(schema: Schema, mappings: Mapping[], options?: MatchOptions): void; | ||
match(schema: Schema, mappings: Mapping[], options?: MatchOptions): void; | ||
schemaData(source: any, name: string, type: Type): SchemaData; | ||
@@ -27,0 +27,0 @@ complete(schema: Schema): void; |
@@ -36,3 +36,3 @@ "use strict"; | ||
} | ||
updateFromMapping(schema, mappings, options = {}) { | ||
match(schema, mappings, options = {}) { | ||
this.matchSchema.match(schema, mappings, options); | ||
@@ -39,0 +39,0 @@ } |
@@ -28,3 +28,3 @@ import { Schema, SchemaData, ClauseInfo, SourceRule, Mapping, MatchOptions, InitializeSchemaArgs, DomainSchema, Entity, Enum, EntityMapping, Stage } from '../domain'; | ||
introspect(data: any | any[], name: string): Promise<SchemaData>; | ||
updateFromMapping(mappings: Mapping[], options?: MatchOptions): Promise<void>; | ||
match(mappings: Mapping[], options?: MatchOptions): Promise<void>; | ||
evalSourceRule(rule: SourceRule, clauseInfo: ClauseInfo): boolean; | ||
@@ -31,0 +31,0 @@ getSource(clauseInfo: ClauseInfo, stage?: string): string; |
@@ -85,5 +85,5 @@ "use strict"; | ||
} | ||
updateFromMapping(mappings_1) { | ||
match(mappings_1) { | ||
return __awaiter(this, arguments, void 0, function* (mappings, options = { removeEntities: true, removeProperties: true, removeRelations: true }) { | ||
this.facade.updateFromMapping(this.originalSchema, mappings, options); | ||
this.facade.match(this.originalSchema, mappings, options); | ||
if (this.schemaPath) { | ||
@@ -90,0 +90,0 @@ yield this.facade.write(this.originalSchema, this.schemaPath); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
348937