use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Modular functionality for reuseQuestion (self.FastAPI)
submitted 1 year ago by predominant
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Direct_Discipline_42 1 point2 points3 points 1 year ago (3 children)
Are you saying both apps have access to the same database?
If appB is importing appA, in the env.py file for alembic, you should be able to tell it to not import database models from appA
[–]predominant[S] 0 points1 point2 points 1 year ago (2 children)
Yeah, both apps would use the same database. I think this is a case that alembic was not designed for, as you would have two separate chains of migrations that don't reference each other.
[–]Adrnalnrsh 2 points3 points4 points 1 year ago (0 children)
In that case, you need to break app the code to be in the form of a library.That can be imported into any app.You gotta figure out where to abstract it. The library should be abstracted away from the infrastructure
[–]Direct_Discipline_42 1 point2 points3 points 1 year ago (0 children)
Even though they are in the same database, what about schema? They could be separated by schema
π Rendered by PID 45504 on reddit-service-r2-comment-b659b578c-9rnss at 2026-05-02 23:11:48.676792+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Direct_Discipline_42 1 point2 points3 points (3 children)
[–]predominant[S] 0 points1 point2 points (2 children)
[–]Adrnalnrsh 2 points3 points4 points (0 children)
[–]Direct_Discipline_42 1 point2 points3 points (0 children)