Skip to content

html_sql Support module level import #571

@bajie-git

Description

@bajie-git

I have been using mybatis for development before, and I like the rbatis library very much. I found that the html_sql file method requires multiple imports of files. Can this be supported at the module?

#[html_sql("example.html")]
mod user{
    async fn select_1(rb: &impl Executor)-> rbatis::Result<Vec<User>>{
        impled!()
    }

    async fn select_2(rb: &impl Executor)-> rbatis::Result<Vec<User>>{
        impled!()
    }

    async fn select_3(rb: &impl Executor)-> rbatis::Result<Vec<User>>{
        impled!()
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions