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

@knorm/knorm

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knorm/knorm

A purely ES6 class-based ORM for Node.js

  • 1.7.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
205
decreased by-87.93%
Maintainers
1
Weekly downloads
 
Created
Source

@knorm/knorm

npm version build status coverage status dependency status Greenkeeper badge

A purely ES6 class-based ORM for Node.js.

Knorm is a collection of classes that allow creating JavaScript ORMs to make it easier to work with relational databases.

Knorm can be used on any existing database without requiring any changes to the database layer. Also, knorm does not create or run any database migrations (creating or altering tables, columns, indexes etc).

You may also use it to create ORMs on the browser (e.g. for data validation).

Features

  • validation, including validation for JSON fields (similar to Mongoose JS)
  • plugin support
  • transactions
  • relations through SQL joins
  • field-name to column-name mapping (e.g. snake-casing)
  • virtual fields with support for async getters
  • value casting before save and after fetch
  • custom error classes for database errors
  • extensive test coverage

Supported environments

These environments are currently supported:

EnvironmentValueDescription
Node.jsVersion >= 7.6.Knorm uses async/await
DatabasesPostgreSQLvia @knorm/postgres plugin

Get started

Keywords

FAQs

Package last updated on 25 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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