typeorm-transactional-next
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

How to use

import { Transaction, useTransaction } from 'lb-typeorm-transactional'

export class UserService {

  @Transaction()
  async updateInfo() {
    await db.update(...)
    await this.photoService.updatePhoto()
  }
}

export class PhotoService {
  @Transaction()
  async updatePhoto(){
    await db.update(...)
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i typeorm-transactional-next

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

84.7 kB

Total Files

13

Last publish

Collaborators

  • libeilong