-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
SQL logging during seeding #1011
Comments
I’m on my phone so can’t check this. But given that migrations are a separate crate with its own Cargo.toml, il pretty sure we would have to turn on the logging feature in the SeaORM dependency there… I haven’t checked if it can be turned on at the crate level and then turned back off at runtime to be able to control it from the loco config. |
no worries, i'll take a look as well |
I did some checking, looks like logging and its flag wiring is good. Migration crate will get an already-initialized connection from the main Loco set up, so it will share what ever configuration were given initially. I'm wondering if configuration on your end is really in sync with what you're running. For example, if you're running tests and expect to see these logs - your The error itself follows from Sqlite requiring a |
closing for now, please reopen if needed |
Discussed in #959
Originally posted by felipesere November 3, 2024
Not sure if I'm holding it wrong 🤷♂️
I'm trying to move my PostsgreSQL backed app to use Sqlite (for "reasons") and my current hurdle is that I get the following error when seeding the users:
Is there a way to turn on SQL logging for seeding? I have it turned on in my test config but I see nothing.
It's hard to tell which column gives me grief :)
The text was updated successfully, but these errors were encountered: