0.1.0 • Published 6 months ago
@rosen-bridge/extended-typeorm v0.1.0
@rosen-bridge/extended-typeorm
Table of contents
Introduction
By default, typeorm doesn't handle parallel transactions. If you run two transactions simultaneously and your database doesn't support it (e.g. if you use sqlite), you will get errors.
Installation
npm:
npm i @rosen-bridge/extended-typeormyarn:
yarn add @rosen-bridge/extended-typeormUsage
import { DataSource } from '@rosen-bridge/extended-typeorm';
const dataSource = DataSource({
...
})Now all database transaction execute correctly without throwing an error, no matter if you call them simultaneously or not.