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

@knorm/knorm

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@knorm/knorm

A JavaScript ORM written using ES6 classes

  • 1.11.2
  • Source
  • npm
  • Socket score

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

@knorm/knorm

npm version build status coverage status dependency status

A JavaScript ORM written using ES6 classes.

Knorm is a collection of classes that allow creating JavaScript ORM's 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. It does not (yet) create or run any database migrations (creating or altering tables, columns, indexes etc), nor does it generate models from existing database schema (yet). For creating and running migrations, consider a library such as Knex.js.

It can also be used on the browser to create models that do not interact with the database, perhaps for data validation. Please note that it's not secure to generate queries on the browser and send them for processing to a backend server.

Features

  • simplicity - easy to extend, configure or override, owing to ES6 classes.
  • 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 the @knorm/postgres plugin

Get started

Keywords

FAQs

Package last updated on 17 Jan 2019

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