@smsh/oms-orm
v0.0.6
Published
> This is promise-based Node.js ORM for OMS DB Server.
Downloads
3
Readme
oms-orm
This is promise-based Node.js ORM for OMS DB Server.
Install
npm i @smsh/oms-orm
Usage
import { connect, connectMySQL, Model } from "@smsh/oms-orm";
connect(
connectMySQL({
host: "localhost",
user: "me",
password: "secret",
database: "my_db"
})
);
class Person extends Model {
static tableName = "db_persons";
}
Person.create({
name: "bo",
level: 10
});
License
ISC