npm.io
1.0.0 • Published 6 years ago

@flowxjs/typeorm

Licence
MIT
Version
1.0.0
Deps
2
Size
5 kB
Vulns
4
Weekly
0

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

Keywords