Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lambdaorm-base

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambdaorm-base - npm Package Compare versions

Comparing version 1.4.12 to 1.4.13

2

package.json
{
"name": "lambdaorm-base",
"version": "1.4.12",
"version": "1.4.13",
"description": "ORM",

@@ -5,0 +5,0 @@ "author": "Flavio Lionel Rita <flaviolrita@proton.me>",

@@ -38,3 +38,8 @@ "use strict";

this.originalSchema = this.facade.create();
this.schemaPath = workspace;
if (yield this.helper.fs.isDirectory(workspace)) {
this.schemaPath = path_1.default.join(workspace, 'lambdaORM.yaml');
}
else {
this.schemaPath = workspace;
}
}

@@ -41,0 +46,0 @@ else {

@@ -64,2 +64,6 @@ export declare enum SentenceCategory {

type: SentenceType;
read: boolean;
write: boolean;
ddl: boolean;
dml: boolean;
}

@@ -24,2 +24,3 @@ /// <reference types="node" />

getInfo(action: SentenceAction, entity: string): SentenceInfo;
private createInfo;
}

@@ -26,0 +27,0 @@ export declare class UUIDWrapper {

@@ -65,73 +65,73 @@ "use strict";

case domain_1.SentenceAction.select:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.dql };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.dql);
case domain_1.SentenceAction.insert:
return { entity, action, category: domain_1.SentenceCategory.insert, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.insert, domain_1.SentenceType.dml);
case domain_1.SentenceAction.insertConditional:
return { entity, action, category: domain_1.SentenceCategory.insert, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.insert, domain_1.SentenceType.dml);
case domain_1.SentenceAction.update:
return { entity, action, category: domain_1.SentenceCategory.update, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.update, domain_1.SentenceType.dml);
case domain_1.SentenceAction.delete:
return { entity, action, category: domain_1.SentenceCategory.delete, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.delete, domain_1.SentenceType.dml);
case domain_1.SentenceAction.merge:
return { entity, action, category: domain_1.SentenceCategory.upsert, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.upsert, domain_1.SentenceType.dml);
case domain_1.SentenceAction.bulkInsert:
return { entity, action, category: domain_1.SentenceCategory.insert, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.insert, domain_1.SentenceType.dml);
case domain_1.SentenceAction.bulkDelete:
return { entity, action, category: domain_1.SentenceCategory.delete, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.delete, domain_1.SentenceType.dml);
case domain_1.SentenceAction.upsert:
return { entity, action, category: domain_1.SentenceCategory.upsert, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.upsert, domain_1.SentenceType.dml);
case domain_1.SentenceAction.bulkMerge:
return { entity, action, category: domain_1.SentenceCategory.upsert, type: domain_1.SentenceType.dml };
return this.createInfo(entity, action, domain_1.SentenceCategory.upsert, domain_1.SentenceType.dml);
case domain_1.SentenceAction.truncateEntity:
return { entity, action, category: domain_1.SentenceCategory.truncate, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.truncate, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.createEntity:
return { entity, action, category: domain_1.SentenceCategory.create, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.create, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.createSequence:
return { entity, action, category: domain_1.SentenceCategory.create, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.create, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.createFk:
return { entity, action, category: domain_1.SentenceCategory.create, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.create, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.createIndex:
return { entity, action, category: domain_1.SentenceCategory.create, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.create, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.alterProperty:
return { entity, action, category: domain_1.SentenceCategory.alter, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.alter, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.addProperty:
return { entity, action, category: domain_1.SentenceCategory.add, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.add, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.addPk:
return { entity, action, category: domain_1.SentenceCategory.add, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.add, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.addUk:
return { entity, action, category: domain_1.SentenceCategory.add, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.add, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.addFk:
return { entity, action, category: domain_1.SentenceCategory.add, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.add, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropSequence:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropEntity:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropProperty:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropPk:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropUk:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropFk:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.dropIndex:
return { entity, action, category: domain_1.SentenceCategory.drop, type: domain_1.SentenceType.ddl };
return this.createInfo(entity, action, domain_1.SentenceCategory.drop, domain_1.SentenceType.ddl);
case domain_1.SentenceAction.objects:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.tables:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.views:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.foreignKeys:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.primaryKeys:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.uniqueKeys:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.indexes:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.sequences:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
case domain_1.SentenceAction.partitions:
return { entity, action, category: domain_1.SentenceCategory.select, type: domain_1.SentenceType.metadata };
return this.createInfo(entity, action, domain_1.SentenceCategory.select, domain_1.SentenceType.metadata);
default:

@@ -141,2 +141,15 @@ throw new Error(`Invalid action ${action}`);

}
createInfo(entity, action, category, type) {
return {
entity,
action,
category,
type,
// for retro-compatibility
read: category === domain_1.SentenceCategory.select,
write: category !== domain_1.SentenceCategory.select,
ddl: type === domain_1.SentenceType.ddl,
dml: type === domain_1.SentenceType.dml || type === domain_1.SentenceType.dql
};
}
}

@@ -143,0 +156,0 @@ exports.SqlHelper = SqlHelper;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc