JSPM

typeorm-multi-tenant

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q25219F
  • License MIT

lib which makes life easy to work with multi tenet using typeorm

Package Exports

  • typeorm-multi-tenant
  • typeorm-multi-tenant/dist/index.js
  • typeorm-multi-tenant/dist/index.mjs

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (typeorm-multi-tenant) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

typeorm-multi-tenant ✨

Version License: MIT

typeorm-multi-tenant lib allows you to manage dynamic connection with multi tenant using typeorm, connection pooling is internally handled, you can create connection to specific tenant whenever you want!

Installation

npm install typeorm-multi-tenant

Usage

import { Connection } from "typeorm";
import multiTenetConnectionManager from "typeorm-multi-tenant";

const manager = new multiTenetConnectionManager();

async function main() {
  const connection: Connection = await manager.createConnection("connection_name","schema_name");

  
  // Use the connection here
}

main();

Documentation

checkout Examples

🤝 Contributors

Contributions, issues, and feature requests are welcome! 🙌

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!