Wiley McKay Conte
Wiley McKay Conte
just an update i think as of today this should look something like: ```rust match err { sqlx::Error::RowNotFound => Err(Error::UserNotFound.into()), sqlx::Error::Database(err) if err.constraint() == Some("username_key") => { Err(Error::UsernameTaken.into()) } _...
In reading through the source, it looks like `_sqlx_migrations` is hard coded into many of the sql queries so this might be a bit of a lift to implement. Would...
You're a legend @sunli829 💪
What does this look like in practice? This doesn't seem to be working: ```rust let app = Route::new() .at("/", get(graphql_playground).post(graphql_handler)) .data(schema) .with(Cors::default()) .with(ForceHttps::default()); let port = std::env::var("PORT").unwrap_or_else(|_| "1234".to_string()); let address...
Nice! This is working great everywhere except for localhost, where it redirects http://localhost:1234 to https://localhost:1234, even with the `https_port` specified. I solved this with a simple if-else that uses an...
Would it be possible to optionally check for HTTPS using the X-Forwarded-Proto header? Unfortunately this middleware causes ERR_TOO_MANY_REDIRECTS in heroku deployments due to this: https://help.heroku.com/VKLSBMJS/why-am-i-getting-a-message-too-many-redirects
Thanks for the quick response @cluk3 - its not a blocker but I wanted to bring it to your attention! This is an awesome hook, really nicely done!
Bumping this as well, we should be able to serialize nested structs into urls with [serde_qs](https://docs.rs/serde_qs/latest/serde_qs/). For example: ```rust Struct QueryParams { some_nested: Option; } // `/api/v2/entity?some_nested=val1&some_nested=val2` ```
The way I imagine it being used would look something like this: ```typescript const write = new MidiWriter.Writer(track); const uri = write.dataUri(); const track = new MidiWriter.Track().fromUri(); track.addEvent( new MidiWriter.ProgramChangeEvent({...
+1 I also need to figure this out. I'm thinking I'll have to write my own buildpack similar to this one with a prebuild script that runs `sqlx migrate run`...