I have an use case of 2 separate tables which I would like to handle versioning, so drift versioning system works really nice. One would be the main one and the other would be for support data, which is attached.
How could I declare the code generation for those 2 database schemas, and make support.db tables available when building queries for main.db ? I usually use either raw queries or Dart query builder. I'd like to avoid passing down to functions 2 separate database objects, because most of the time "support" would be use to just reference the TableInfos and there is no actual open step for it. ATTACH DATABASE is used instead.
It sounds like "support" in this case could even be a global object with the generated table and column references, but I might be wrong.
I have an use case of 2 separate tables which I would like to handle versioning, so drift versioning system works really nice. One would be the main one and the other would be for support data, which is attached.
How could I declare the code generation for those 2 database schemas, and make support.db tables available when building queries for main.db ? I usually use either raw queries or Dart query builder. I'd like to avoid passing down to functions 2 separate database objects, because most of the time "support" would be use to just reference the
TableInfos and there is no actualopenstep for it. ATTACH DATABASE is used instead.It sounds like "support" in this case could even be a global object with the generated table and column references, but I might be wrong.