Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The ent orm for golang actually does some useful work for you. https://github.com/ent/ent
The property of composable queries is not unique to (or dare I say even characteristic of) ORMs, which are primarily concerned with mapping between relations (in the relational algebra sense) or tables, and in-memory objects.
It's the modelling of SQL as an AST that gives you that composability, and this does not require an ORM; see for instance arel (even though this was later absorbed into Rails' ActiveRecord as an implementation detail). [0]
[0] https://github.com/brynary/arel
I can't find an equivalent for Go. https://github.com/sqlc-dev/sqlc and https://github.com/sqlc-dev/sqlc look nice, but they are doing codegen, definitely not as sleek as Rust sqlx.
I guess it's a good example of how powerful Rust is. The "magic" that sqlx does at compile time gets really difficult if not impossible to do without macros.
Of course you could create a separate parser/builder, and codegen works as well, but definitely not as convenient and flexible.
> I still sometimes get lifetime errors that I donโt understand.
I'd like to remind people that errors you don't understand are bugs and I'd encourage you all to file a ticket when encountering any: https://github.com/rust-lang/rust/issues/new?assignees=&labe...
Tauri is definitely a hot SEO keyword!
I had not heard of https://wails.io before for Golang GUIs, only https://fyne.io which renders its own controls.