-
-
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
Example of integrating with Rocket #106
Conversation
Hey @samsamai, can you push the latest draft up here? Even if it can't be compiled. |
Hi @tyt2y3 @billy1624 , yeah I've been trying to clean up the code up tonight but I'm having some weird problems, it is giving errors that I wasn't getting before. I just rebooted and updated rust... 🤞 |
Still doing it, it's weird, I'm going back to one of my commits from before but getting lots of these:
Not sure what it's doing with test_cfg when my code is a crate inside examples |
Try |
Thanks! that was it! |
@billy1624 I pushed up the version that I have, sorry it is really messy as I was trying everything to just get it to work.
It's hard coded to use mysql (see the rocket side) just to get it working. |
Okay, so that means we need to open a PR on Rocket! |
Hey @samsamai, I think we can sea-orm/src/driver/rocket_mysql.rs Lines 1 to 39 in 87d4f09
|
Thanks @billy1624 that's great, I was trying to do that but I was getting an error like |
Yes, because only the owner of the type or the trait can impl a trait for a type (well). |
Looks good so far. I am just puzzling, what's prevent us from generalizing over MySQL and Postgres? |
okay, I think we can name it |
2d2fff7
to
6847dab
Compare
@tyt2y3 Yes sure, @billy1624 help is always appreciated. I'll make a start on it and ask if I get stuck. |
Looks really good now! |
I've been adding some templates so that the example renders html and is more interactive. I will check that in soon and then have a look at getting db_url in the run_migrations. |
Wow we got an UI for it? Cool! @samsamai |
I think we are missing a link in the |
@tyt2y3 I added an edit page which serves dual purpose. |
This is ready to launch, I reckon. 😉 |
No description provided.