lambdaorm-base
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "lambdaorm-base", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "ORM", | ||
@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>", |
@@ -23,3 +23,3 @@ import { Schema, SchemaData, Dialect, Mapping, MatchOptions, InitializeSchemaArgs, SchemaInfo } from '../domain'; | ||
initialize(schema: Schema, args: InitializeSchemaArgs): Schema; | ||
updateFromData(schema: Schema, data: any | any[], name: string): SchemaData; | ||
introspect(schema: Schema, data: any | any[], name: string): SchemaData; | ||
updateFromMapping(schema: Schema, mappings: Mapping[], options?: MatchOptions): void; | ||
@@ -26,0 +26,0 @@ schemaData(source: any, name: string, type: Type): SchemaData; |
@@ -31,3 +31,3 @@ "use strict"; | ||
} | ||
updateFromData(schema, data, name) { | ||
introspect(schema, data, name) { | ||
const type = this.updateSchema.update(schema, data, name); | ||
@@ -34,0 +34,0 @@ const schemaData = this.schemaData(data, name, type); |
@@ -27,3 +27,3 @@ import { Schema, SchemaData, ClauseInfo, SourceRule, Mapping, MatchOptions, InitializeSchemaArgs, DomainSchema, Entity, Enum, EntityMapping, Stage } from '../domain'; | ||
load(source: string | Schema): Promise<Schema>; | ||
updateFromData(data: any | any[], name: string): Promise<SchemaData>; | ||
introspect(data: any | any[], name: string): Promise<SchemaData>; | ||
updateFromMapping(mappings: Mapping[], options?: MatchOptions): Promise<void>; | ||
@@ -30,0 +30,0 @@ evalSourceRule(rule: SourceRule, clauseInfo: ClauseInfo): boolean; |
@@ -75,5 +75,5 @@ "use strict"; | ||
} | ||
updateFromData(data, name) { | ||
introspect(data, name) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const schemaData = this.facade.updateFromData(this.originalSchema, data, name); | ||
const schemaData = this.facade.introspect(this.originalSchema, data, name); | ||
if (this.schemaPath) { | ||
@@ -80,0 +80,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
349003