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

cormo

Package Overview
Dependencies
Maintainers
8
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cormo

ORM framework for Node.js

  • 0.17.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
297
decreased by-23.85%
Maintainers
8
Weekly downloads
 
Created
Source

npm version test

About

CORMO is an ORM framework for Node.js.

Currently supports:

  • multi-DB: MySQL, MongoDB, SQLite3, PostgreSQL
  • constraints
  • validations
  • associations
  • geospatial query
  • callbacks
  • aggregation
  • nested column
  • transactions
  • schema migration

See https://github.com/croquiscom/cormo/wiki/Future-Plans for future plans.

Overview

The following is a basic usage. You can see detail guides on http://croquiscom.github.io/cormo/.

import * as cormo from 'cormo';

const connection = new cormo.MySQLConnection({ database: 'test' });

@cormo.Model()
class User extends cormo.BaseModel {
  @cormo.Column({ type: String, required: true, unique: true })
  name!: string;

  @cormo.Column({ type: cormo.types.Integer })
  age?: number;
}

await User.create({ name: 'John Doe', age: 27 });

const users = await User.where({ age: 27 }).select(['name']).order('name').limit(5).skip(100);

License

MIT licenses. See LICENSE for more details.

Keywords

FAQs

Package last updated on 24 Dec 2021

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