CORMO is an ORM framework for Node.js.
Currently supports:
See https://github.com/croquiscom/cormo/wiki/Future-Plans for future plans.
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);
MIT licenses. See LICENSE for more details.
Generated using TypeDoc