home.social

#seaorm — Public Fediverse posts

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

  1. Is there any prior art for migrating from one #database migration system to another one? Like for example between #seaorm, #diesel or #toasty, each of which brings their own migration tooling? I'm migrating a service which has not seen widespread use yet, and I'm uncertain how much work I should invest into providing smooth (=fully automated) migration path with SQL statements that contain difficult to build and understand conditions, vs. just writing a migration guide with manual steps.

    #rust

  2. Is there any prior art for migrating from one #database migration system to another one? Like for example between #seaorm, #diesel or #toasty, each of which brings their own migration tooling? I'm migrating a service which has not seen widespread use yet, and I'm uncertain how much work I should invest into providing smooth (=fully automated) migration path with SQL statements that contain difficult to build and understand conditions, vs. just writing a migration guide with manual steps.

    #rust

  3. Is there any prior art for migrating from one #database migration system to another one? Like for example between #seaorm, #diesel or #toasty, each of which brings their own migration tooling? I'm migrating a service which has not seen widespread use yet, and I'm uncertain how much work I should invest into providing smooth (=fully automated) migration path with SQL statements that contain difficult to build and understand conditions, vs. just writing a migration guide with manual steps.

    #rust

  4. Is there any prior art for migrating from one #database migration system to another one? Like for example between #seaorm, #diesel or #toasty, each of which brings their own migration tooling? I'm migrating a service which has not seen widespread use yet, and I'm uncertain how much work I should invest into providing smooth (=fully automated) migration path with SQL statements that contain difficult to build and understand conditions, vs. just writing a migration guide with manual steps.

    #rust

  5. Is there any prior art for migrating from one #database migration system to another one? Like for example between #seaorm, #diesel or #toasty, each of which brings their own migration tooling? I'm migrating a service which has not seen widespread use yet, and I'm uncertain how much work I should invest into providing smooth (=fully automated) migration path with SQL statements that contain difficult to build and understand conditions, vs. just writing a migration guide with manual steps.

    #rust

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

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

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

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

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

  11. Is there an elegant way to update a field in #SeaORM using a database function? It's also the default for that field (random non-primary ID). I need to return the result of that update and it currently takes three queries to do that. (1. fetch to see if the record exists, 2. update the ID, 3. fetch the updated record and return it)

  12. Is there an elegant way to update a field in #SeaORM using a database function? It's also the default for that field (random non-primary ID). I need to return the result of that update and it currently takes three queries to do that. (1. fetch to see if the record exists, 2. update the ID, 3. fetch the updated record and return it)

  13. Is there an elegant way to update a field in #SeaORM using a database function? It's also the default for that field (random non-primary ID). I need to return the result of that update and it currently takes three queries to do that. (1. fetch to see if the record exists, 2. update the ID, 3. fetch the updated record and return it)

  14. I re-started one of my projects again today (and deleted 10kloc of the previous code).

    I started by implementing the basic model, then added a database persistence layer using #seaorm with #sqlite as backend but I am really slow writing that. I don't know why, but the tooling feels weird to me, especially because you generate files and then you manually edit their content(??? Or am I misunderstanding something?). This feels weird.

    Then I started to implement a very basic "just dump the data in one big json file on disk" backend, which was obviously much faster to write.

    Next would be the basic network code and the over-the-wire protocol and then the behavior and validation code.

    I really hope I get something basic to work and am not again sidetracked 😢 which is actually the reason it wasn't in POC state before.

    #rust #rustlang

  15. I re-started one of my projects again today (and deleted 10kloc of the previous code).

    I started by implementing the basic model, then added a database persistence layer using #seaorm with #sqlite as backend but I am really slow writing that. I don't know why, but the tooling feels weird to me, especially because you generate files and then you manually edit their content(??? Or am I misunderstanding something?). This feels weird.

    Then I started to implement a very basic "just dump the data in one big json file on disk" backend, which was obviously much faster to write.

    Next would be the basic network code and the over-the-wire protocol and then the behavior and validation code.

    I really hope I get something basic to work and am not again sidetracked 😢 which is actually the reason it wasn't in POC state before.

    #rust #rustlang

  16. I re-started one of my projects again today (and deleted 10kloc of the previous code).

    I started by implementing the basic model, then added a database persistence layer using #seaorm with #sqlite as backend but I am really slow writing that. I don't know why, but the tooling feels weird to me, especially because you generate files and then you manually edit their content(??? Or am I misunderstanding something?). This feels weird.

    Then I started to implement a very basic "just dump the data in one big json file on disk" backend, which was obviously much faster to write.

    Next would be the basic network code and the over-the-wire protocol and then the behavior and validation code.

    I really hope I get something basic to work and am not again sidetracked 😢 which is actually the reason it wasn't in POC state before.

    #rust #rustlang

  17. I re-started one of my projects again today (and deleted 10kloc of the previous code).

    I started by implementing the basic model, then added a database persistence layer using #seaorm with #sqlite as backend but I am really slow writing that. I don't know why, but the tooling feels weird to me, especially because you generate files and then you manually edit their content(??? Or am I misunderstanding something?). This feels weird.

    Then I started to implement a very basic "just dump the data in one big json file on disk" backend, which was obviously much faster to write.

    Next would be the basic network code and the over-the-wire protocol and then the behavior and validation code.

    I really hope I get something basic to work and am not again sidetracked 😢 which is actually the reason it wasn't in POC state before.

    #rust #rustlang

  18. I re-started one of my projects again today (and deleted 10kloc of the previous code).

    I started by implementing the basic model, then added a database persistence layer using #seaorm with #sqlite as backend but I am really slow writing that. I don't know why, but the tooling feels weird to me, especially because you generate files and then you manually edit their content(??? Or am I misunderstanding something?). This feels weird.

    Then I started to implement a very basic "just dump the data in one big json file on disk" backend, which was obviously much faster to write.

    Next would be the basic network code and the over-the-wire protocol and then the behavior and validation code.

    I really hope I get something basic to work and am not again sidetracked 😢 which is actually the reason it wasn't in POC state before.

    #rust #rustlang

  19. About 3000 LoC changed later and now user data is stored in a database instead of just as JSON in folders #SeaORM

  20. About 3000 LoC changed later and now user data is stored in a database instead of just as JSON in folders #SeaORM

  21. About 3000 LoC changed later and now user data is stored in a database instead of just as JSON in folders #SeaORM

  22. Here I see that SeaORM is just some added burden. I see no benefit in using it for my project.

    You need to learn their API (DSL) to query the database.

    It names its stuff "entities" and "models" and you have to come up with another name for your business models.

    Extremely difficult to work with relation ships. Even harder if you models have multiple or chained relation ships.

    #seaorm

  23. Here I see that SeaORM is just some added burden. I see no benefit in using it for my project.

    You need to learn their API (DSL) to query the database.

    It names its stuff "entities" and "models" and you have to come up with another name for your business models.

    Extremely difficult to work with relation ships. Even harder if you models have multiple or chained relation ships.

    #seaorm

  24. Here I see that SeaORM is just some added burden. I see no benefit in using it for my project.

    You need to learn their API (DSL) to query the database.

    It names its stuff "entities" and "models" and you have to come up with another name for your business models.

    Extremely difficult to work with relation ships. Even harder if you models have multiple or chained relation ships.

    #seaorm

  25. Here I see that SeaORM is just some added burden. I see no benefit in using it for my project.

    You need to learn their API (DSL) to query the database.

    It names its stuff "entities" and "models" and you have to come up with another name for your business models.

    Extremely difficult to work with relation ships. Even harder if you models have multiple or chained relation ships.

    #seaorm

  26. After testing both SeaORM & Tokio Postgres:

    With both, you still need to manually write
    - junction table
    - migrations
    - mappings to your useful or complex types/structs.

    So basicaly you just get almost raw result from a database that is a SQL table representation that you transform to you business models.

    #seaorm #postgres #tokioPostgres

  27. After testing both SeaORM & Tokio Postgres:

    With both, you still need to manually write
    - junction table
    - migrations
    - mappings to your useful or complex types/structs.

    So basicaly you just get almost raw result from a database that is a SQL table representation that you transform to you business models.

    #seaorm #postgres #tokioPostgres

  28. After testing both SeaORM & Tokio Postgres:

    With both, you still need to manually write
    - junction table
    - migrations
    - mappings to your useful or complex types/structs.

    So basicaly you just get almost raw result from a database that is a SQL table representation that you transform to you business models.

    #seaorm #postgres #tokioPostgres

  29. After testing both SeaORM & Tokio Postgres:

    With both, you still need to manually write
    - junction table
    - migrations
    - mappings to your useful or complex types/structs.

    So basicaly you just get almost raw result from a database that is a SQL table representation that you transform to you business models.

    #seaorm #postgres #tokioPostgres

  30. Now that I've got the #SeaORM's DatabaseConnection picked up in #rust #warp's filter, I can proudly say that I've got a basic understanding of FnOnce vs FnMut vs Fn.
    Finally, I got the std::sync::Mutex vs futures::lock::Mutex, this was the last hurdle to make it work.

  31. Now that I've got the #SeaORM's DatabaseConnection picked up in #rust #warp's filter, I can proudly say that I've got a basic understanding of FnOnce vs FnMut vs Fn.
    Finally, I got the std::sync::Mutex vs futures::lock::Mutex, this was the last hurdle to make it work.

  32. Now that I've got the #SeaORM's DatabaseConnection picked up in #rust #warp's filter, I can proudly say that I've got a basic understanding of FnOnce vs FnMut vs Fn.
    Finally, I got the std::sync::Mutex vs futures::lock::Mutex, this was the last hurdle to make it work.

  33. Now that I've got the #SeaORM's DatabaseConnection picked up in #rust #warp's filter, I can proudly say that I've got a basic understanding of FnOnce vs FnMut vs Fn.
    Finally, I got the std::sync::Mutex vs futures::lock::Mutex, this was the last hurdle to make it work.

  34. Now that I've got the #SeaORM's DatabaseConnection picked up in #rust #warp's filter, I can proudly say that I've got a basic understanding of FnOnce vs FnMut vs Fn.
    Finally, I got the std::sync::Mutex vs futures::lock::Mutex, this was the last hurdle to make it work.

  35. This turned out into an interesting journey, I learned a lot about #seaorm by reading what #loco did with it, how they enhanced it. My current #rust implementation remains purely #seaorm based, but #loco has a lot to offer. Using just the #seaorm layer #loco built seems attractive.

  36. This turned out into an interesting journey, I learned a lot about #seaorm by reading what #loco did with it, how they enhanced it. My current #rust implementation remains purely #seaorm based, but #loco has a lot to offer. Using just the #seaorm layer #loco built seems attractive.

  37. I am really disapointed I have to define a lot of join tables and write tons of inserts. I am using SeaORM but the issue is also present in Diesel as I can tell.

    #rust #seaORM

  38. I am really disapointed I have to define a lot of join tables and write tons of inserts. I am using SeaORM but the issue is also present in Diesel as I can tell.

    #rust #seaORM

  39. I am really disapointed I have to define a lot of join tables and write tons of inserts. I am using SeaORM but the issue is also present in Diesel as I can tell.

    #rust #seaORM

  40. So I looked at Diesel and it has the same problem with writing migrations. One needs to manually write join tables and stuff.

    #rust #diesel #seaORM

  41. So I looked at Diesel and it has the same problem with writing migrations. One needs to manually write join tables and stuff.

    #rust #diesel #seaORM

  42. So I looked at Diesel and it has the same problem with writing migrations. One needs to manually write join tables and stuff.

    #rust #diesel #seaORM

  43. Why do we have to write migrations first with SeaORM?

    It makes me think and waste energy on trivial repetitive tasks like what to name my join table and write its up and down statements.

    #rust #SeaORM

  44. Why do we have to write migrations first with SeaORM?

    It makes me think and waste energy on trivial repetitive tasks like what to name my join table and write its up and down statements.

    #rust #SeaORM

  45. Why do we have to write migrations first with SeaORM?

    It makes me think and waste energy on trivial repetitive tasks like what to name my join table and write its up and down statements.

    #rust #SeaORM