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?;
That's trivially false.
I'm currently playing with sea-orm[0], and I can write things like:
How is that not higher-level than SQL?[0] https://crates.io/crates/sea-orm