Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

orm relation database connection support #404

Open
zacksleo opened this issue Mar 21, 2022 · 0 comments
Open

orm relation database connection support #404

zacksleo opened this issue Mar 21, 2022 · 0 comments

Comments

@zacksleo
Copy link

zacksleo commented Mar 21, 2022

It's seems that relation does not support cross database connection.

when I use @belongs_to which model usded another database connection, I got exception like ""Table 'member' doesn't exist""

    @belongs_to
    def member(self):
        return Member


class Member(Model):

    __connection__ = 'another_database'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant