@rosen-bridge/extended-typeorm
v0.0.3
Published
An extended typeorm datasource with run some queries better
Downloads
396
Readme
@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-typeorm
yarn:
yarn add @rosen-bridge/extended-typeorm
Usage
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.