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

in memory CRUD #6

Open
elyase opened this issue Aug 28, 2022 · 2 comments
Open

in memory CRUD #6

elyase opened this issue Aug 28, 2022 · 2 comments
Assignees

Comments

@elyase
Copy link

elyase commented Aug 28, 2022

Hi is there a way to use the crate with sqlite memory? I was looking at create_table_from_entity but not sure how to combine it with sqlx-crud

@treydempsey treydempsey self-assigned this Apr 7, 2023
@treydempsey
Copy link
Owner

All of the doc tests I have in the code use the sqlite in memory database. Just start a sqlx connection.

SqlitePool::connect(":memory:")

@treydempsey
Copy link
Owner

It looks like create_table_from_entity uses SeaORM. This project is designed to work with sqlx. I'm not familiar with SeaORM but if you can share the same sqlx connection pool between sqlx-crud and SeaORM then it should work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants