home.social

#seaorm — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #seaorm, aggregated by home.social.

  1. sea-ql.org/SeaORM/docs/generat

    >This is where SeaORM shines: it automatically builds a dependency graph from your entities and determines the correct topological order to create the tables, so you don't have to keep track of them in your head.

    Awesome. It sounds like #SeaORM might be Rust's equivalent of #EntityFramework from the #dotnet world. I'm fiddling with a local application that stores data in a #sqlite database, and have been looking at various crates that could handle schema and entity management. While SeaORM bills itself as being meant for web applications, I'm not seeing anything that would preclude using it in local apps.

    #rustlang

  2. Very happy.
    Made good progress. web form #CRUD now complete for first db table Song_Books working in #PrayerOfHannah
    #RustLang #Axum #SeaOrm
    All code on @Codeberg (which I see has been updated to use @forgejo ) at
    codeberg.org/Dave42W/PrayerOfH
    #CodeBerg #Forgejo

  3. Ok toasted sandwiches made and all in the freezer.
    Now a bit of playing with #PrayerOfHannah using #RustLang
    Got all #SeaOrm #Axum 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 😃

  4. 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

  5. Very excited. I have the parts working together for an incredibly, basic #RustLang web app. Using #Axum #Handlebars_rs #SeaOrm with #Sqlite all on #CodeBerg 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 #PrayerOfHannah .
    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.

  6. Close but struggling to connect #SeaOrm entities to #Axum handlers, I want get Json from the entity for rendering html with #Handlebars_rs ) 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.
    #RustLang learning curve is steep again.

  7. Made good #RustLang progress this evening, no longer spending hours trying to understand compiler errors 😊
    Working on my learning project "Daves Dashboard" code on #CodeBerg at codeberg.org/Dave42W/daves_das
    I've got #Axum #Handlebars_rs (including first partial template) and #SeaOrm 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.