2 ms·
> 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 ca
by kelnos 2y ago
> 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 https://crates.io/crates/sea-orm
- cwbriscoe 2y agoWhy not just write SQL, it would be much more readable.