@flowx/typeorm
v1.0.3
Published
typeorm for typeservice
Downloads
4
Readme
@flowxjs/typeorm
基于TypeService的ORM框架
Install
$ npm i @flowxjs/typeorm
Usage
import { TypeORM } from '@flowx/typeorm';
const orm = new TypeORM(container);
const [setBinding, setInitializer] = orm.useEntity(options);
setBinding('MySQL'); // 在container上绑定MySQL链接对象 通过 @inject('MySQL')来调用。
setInitializer(async conn => {}); // 做初始化的事情