tortoise / tortoise/tortoise-orm

Dynamically link new databases and create tables

Open
#1,746 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.6k
Forks
516
Avg merge
2d 21h
Merged PRs (30d)
9

Description

Hello, I want to achieve dynamic switching database and dynamic creation of data tables in my project, I want to know whether tortoise supports such a mode? I see in the document that you do not recommend switching databases, and my usage scenario is in the web

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the documentation on database switching and the ORM's guidance for web usage. Determine whether dynamic database selection and table creation are supported, and identify the project entry points that would need a scoped design. Done should be a documented supported approach or a clearly defined feature proposal.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.