-
Notifications
You must be signed in to change notification settings - Fork 515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to reference a table from another IDEA module #502
Comments
And does module B depend on module A? On Tue, Oct 18, 2016 at 5:06 AM Dmitry Rymarev notifications@github.com
|
Yes |
This will unfortunately be non-trivial to support. On Tue, Oct 18, 2016 at 9:54 AM Dmitry Rymarev notifications@github.com
|
in terms of gradle dsl current thinking is something like this:
sqldelight {
MyDatabase {
sourceSets = files("src/main/sqldelight")
}
}
sqldelight {
MyDatabase {
sourceSets = files("src/main/sqldelight")
dependencies {
implementation project(":ModuleA")
}
}
OtherDatabase {
sourceSets = files("src/other/sqldelight")
}
} this would have tasks
That dependency graph will propagate to the json file the IDE plugin reads from so if you are in The database name is also incorporated into the dependency, so |
Let's assume the project has two modules (module A and module B), both have
*.sq
files in them.Module A, User.sq:
Module B, Contact.sq:
REFERENCES user(id) ON DELETE CASCADE
is highlighted by the plugin with Cannot find table user messageThe text was updated successfully, but these errors were encountered: