plugin-typeorm
A plugin to allow Fluse fixtures to interact with a TypeORM connection.
#
Install- yarn
- npm
tip
This plugin requires typeorm
to be installed as well.
#
Example#
API ReferenceThe EntityManager
and Connection
from typeorm
will become available on the context and a runtime option as you use this plugin.
#
Signatureconnection
(optional): The name of the connection, or an instance of a TypeORM connection, defaults todefault
,transaction
(optional): Run the fixture (or combined fixtures) in a single transaction, rolling back if something fails,synchronize
(optional): Synchronize the database before running the fixture,dropBeforeSync
(optional): Drop the database entirely before sychronizing,