News for hackers. Stuff that matters.
Re:Rust-Query by kelnos on Saturday November 30, 2024 @06:10PM (#42284747)
> SQL is the highest level you can get without getting into the minefield that is LLMs

That's trivially false.

I'm currently playing with sea-orm[0], and I can write things like:

    let db = Database::connect(...).await?;
    let yesterday: chrono::DateTime<chrono::Utc> = ...;
    let foos: Vec<foos::Model> = Foos::find()
        .filter(foos::Column::Status.eq(FooStatus::Frobbed))
        .filter(foos::Column::UpdatedAt.gt(yesterday))
        .left_join(Bars)
        .also_select(Bars)
        .all(&db)
        .await?;
How is that not higher-level than SQL?

[0] https://crates.io/crates/sea-orm

Re:Rust-Query by cwbriscoe on Sunday December 01, 2024 @03:01PM (#42290349)
Why not just write SQL, it would be much more readable.