Skip to content
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

add bare sqlalchemy rx.session #3512

Closed
benedikt-bartscher opened this issue Jun 17, 2024 · 0 comments · Fixed by #3522
Closed

add bare sqlalchemy rx.session #3512

benedikt-bartscher opened this issue Jun 17, 2024 · 0 comments · Fixed by #3522
Assignees
Labels
feature request A feature you wanted added to reflex

Comments

@benedikt-bartscher
Copy link
Contributor

Add something like rx.sqla_session or rx.session(bare=True) to get a bare sqlalchemy session instead of sqlmodel

@ElijahAhianyo ElijahAhianyo added feature request A feature you wanted added to reflex and removed custom component request labels Jun 18, 2024
benedikt-bartscher added a commit to benedikt-bartscher/reflex that referenced this issue Jun 19, 2024
Lendemor pushed a commit that referenced this issue Jun 25, 2024
* add bare sqlalchemy session, Closes #3512

* expose sqla_session at module level, add tests, improve typing

* fix table name

* add model_registry fixture, improve typing

* did not meant to push this

* add docstring to model_registry

* do not expose sqla_session in reflex namespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature you wanted added to reflex
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants