Masonite-multitenancy

Latest version: v0.0.5

Safety actively analyzes 625010 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.0.5

What's Changed
- [x] Added `Tenancy` Facade
- [x] Tenancy now uses Facade for managing connections
- [x] Added `TenantContext`, now you can change the connection on the fly
python
from multitenancy.contexts import TenantContext
from multitenancy.models.Tenant import Tenant

tenant = Tenant.where('name', '=', 'tenant1').first()

with TenantContext(tenant=tenant) as ctx:
do whatever you like in tenant
...
migrate the database
ctx.migrate()
ctx.migrate_refresh()
ctx.migrate_rollback()
ctx.migrate_reset()
ctx.migrate_status()

seed the database
ctx.seed()

- [x] Other minor enhancements and bug fixes


**Full Changelog**: https://github.com/py-package/masonite-multitenancy/compare/0.0.4...0.0.5

0.0.4

What's Changed
* Hotfix/connection by yubarajshrestha in https://github.com/py-package/masonite-multitenancy/pull/4

New Contributors
* yubarajshrestha made their first contribution in https://github.com/py-package/masonite-multitenancy/pull/4

**Full Changelog**: https://github.com/py-package/masonite-multitenancy/compare/0.0.3...0.0.4

0.0.3

What's Changed
* Bump actions/checkout from 2 to 3 by dependabot in https://github.com/py-package/masonite-multitenancy/pull/1
* Bump actions/setup-python from 2 to 4 by dependabot in https://github.com/py-package/masonite-multitenancy/pull/2
* Bump codecov/codecov-action from 2 to 3 by dependabot in https://github.com/py-package/masonite-multitenancy/pull/3

New Contributors
* dependabot made their first contribution in https://github.com/py-package/masonite-multitenancy/pull/1

**Full Changelog**: https://github.com/py-package/masonite-multitenancy/compare/0.0.2...0.0.3

0.0.2

**Full Changelog**: https://github.com/yubarajshrestha/masonite-multitenancy/compare/0.0.1...0.0.2

0.0.1

**Full Changelog**: https://github.com/yubarajshrestha/masonite-multitenancy/commits/0.0.1

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.