Skip to content

[Help]希望提供多数据库连接的实现示例 #45

@ljyf5593

Description

@ljyf5593

由于项目中需要读取多个数据库,希望提供一个操作多个数据库的实现示例,目前提供的文档只说了建议实现自定义代理类,继承GaarasonDataSourceWrapper(即实现GaarasonDataSource接口), 并重写protected DataSource getRealDataSource(boolean isWriteOrTransaction)。但是具体如何实现,以及Model中如何使用,没有说明,希望给出一个示例参考。谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions