-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat: wrapper connection implementation #400
base: main
Are you sure you want to change the base?
Conversation
A couple of things.
|
crates/service_utils/src/db/types.rs
Outdated
use diesel::PgConnection; | ||
use diesel::RunQueryDsl; | ||
|
||
pub struct SuperTransactionManager; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about TransactionManagerImpl
?
crates/service_utils/src/db/types.rs
Outdated
} | ||
} | ||
|
||
pub struct SuperConnection { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ConnectionImpl
?
} | ||
}; | ||
|
||
let schema_name = req.extensions().get::<SchemaName>().cloned().unwrap().0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might have to update tenant.rs
to insert superposition
schema in case we want to add APIs for just querying things from those tables. I don't think we have that today.
I am seeing that we don't need the |
I can do the tests part if something is taking time. |
fee97a0
to
007698a
Compare
007698a
to
c80c557
Compare
Problem
Describe the problem you are trying to solve here
Solution
Provide a brief summary of your solution so that reviewers can understand your code
Environment variable changes
What ENVs need to be added or changed
Pre-deployment activity
Things needed to be done before deploying this change (if any)
Post-deployment activity
Things needed to be done after deploying this change (if any)
API changes
Possible Issues in the future
Describe any possible issues that could occur because of this change