Dave Warnock · @Dave42W
304 followers · 1260 posts · Server amastodon.uk

Very happy.
Made good progress. web form now complete for first db table Song_Books working in

All code on @Codeberg (which I see has been updated to use @forgejo ) at
codeberg.org/Dave42W/PrayerOfH

#crud #prayerofhannah #rustlang #axum #seaorm #codeberg #forgejo

Last updated 2 years ago

Dave Warnock · @Dave42W
304 followers · 1259 posts · Server amastodon.uk

Ok toasted sandwiches made and all in the freezer.
Now a bit of playing with using
Got all etc installed and going to define the first tables in the migration script (table definitions are going to be incredibly unstable for quite a while).
Enjoying a nice coffee too 😃

#prayerofhannah #rustlang #seaorm #axum

Last updated 2 years ago

Dave Warnock · @Dave42W
304 followers · 1232 posts · Server amastodon.uk

It has taken me ages but I finally have migration creating and dropping an index. In the process, I think I have gained a better grasp of working with Result
Should be useful when I revisit getting SeaOrm to work cleanly with StatusCode
All committed in at codeberg.org/Dave42W/daves_das

#seaorm #rustlang #axum #codeberg

Last updated 2 years ago

Dave Warnock · @Dave42W
298 followers · 1187 posts · Server amastodon.uk

Ok, in today's I have managed to wrap Update and Delete in transactions. In I've got Insert, Update and Delete redirecting url's properly.
There are a few cases where I would like to return nice HTTP status codes (such as if another user has deleted the row before your transaction starts).
Struggling to get those different responses to work as I want.

#rustlang #seaorm #axum

Last updated 2 years ago

Dave Warnock · @Dave42W
297 followers · 1185 posts · Server amastodon.uk

I keep putting off doing docs and tests 😉
But I now have full CRUD for my first table.
I had some difficulties using the PATCH method on my edit form, it wasn't routing as I expected, so updates use POST to a different route.
I need
- some better passing db errors to the user
- a delete confirmation
- checking for multi-user db changes
- transactions
- after insert/update/delete I should redirect to the list not simply call the method as the url is wrong.

#rustlang #axum #seaorm #handlebars_rs

Last updated 2 years ago

Dave Warnock · @Dave42W
297 followers · 1178 posts · Server amastodon.uk

Very excited. I have the parts working together for an incredibly, basic web app. Using with all on at codeberg.org/Dave42W/daves_das
I've tidied the code and massively simplified it.
Getting to the point where I have a working environment to start building .
I do want to add doc strings, and tests so this becomes the simplest possible example of all the connections for a CRUD web app.

#rustlang #axum #handlebars_rs #seaorm #sqlite #codeberg #prayerofhannah

Last updated 2 years ago

Dave Warnock · @Dave42W
290 followers · 1090 posts · Server amastodon.uk

Close but struggling to connect entities to handlers, I want get Json from the entity for rendering html with ) and I want to get extracted form into entity struct so I can insert into database.
Caught in a mismatch of types and traits and funding the docs & examples either don't work or very confusing.
learning curve is steep again.

#seaorm #axum #handlebars_rs #rustlang

Last updated 2 years ago

Dave Warnock · @Dave42W
287 followers · 1074 posts · Server amastodon.uk

Made good progress this evening, no longer spending hours trying to understand compiler errors 😊
Working on my learning project "Daves Dashboard" code on at codeberg.org/Dave42W/daves_das
I've got (including first partial template) and working together neatly. Was a lot of setup for migrations but now also have autogenerated entity.
Next connect my model to the database using entity.

#rustlang #codeberg #axum #handlebars_rs #seaorm

Last updated 2 years ago