1.0.0 • Published 4 years ago

@flowxjs/typeorm v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

@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 => {}); // 做初始化的事情