mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
bee1d4793d
no-issue Writing code outside of Ghost which deals with the models is currently done by passing the models which are needed to the external module, rather than the instance of ghostBookshelf. This does not give us a way to create transaction to run queries in. This method is designed as a simple way to give all models the power to create a transaction for themselves. This will be used in @tryghost/members-api for example to ensure that failures in communication with the Stripe API will rollback the related inserts in the database. |
||
---|---|---|
.. | ||
adapters | ||
api | ||
data | ||
lib | ||
models | ||
public | ||
services | ||
views | ||
web | ||
analytics-events.js | ||
ghost-server.js | ||
notify.js | ||
overrides.js | ||
run-update-check.js | ||
update-check.js |