rust-magic-function-params
atlas
rust-magic-function-params | atlas | |
---|---|---|
10 | 67 | |
497 | 5,064 | |
- | 5.1% | |
10.0 | 9.8 | |
5 months ago | 8 days ago | |
Rust | Go | |
- | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
rust-magic-function-params
- GitHub - alexpusch/rust-magic-function-params: Example for Axum style magic function parameter passing
-
What's the coolest Rust project you've seen that made you go, 'Wow, I didn't know Rust could do that!'?
Yes! https://github.com/alexpusch/rust-magic-function-params
-
Function that takes in any function as a parameter?
An approach similar to https://github.com/alexpusch/rust-magic-function-params can be used here. Basically, define a trait and implement it on FnOnce(A) -> R, then do function.trait_method(args).
- Axum-style magic function params demystified
- How does Bevy engine manage to be so "loose" with function signatures?
-
Parenthesis around argument name
I don't know what it is called but this helped me understand how they worked a little bit. https://github.com/alexpusch/rust-magic-function-params
- Rust state management pattern (like Tauri, Axum & Bevy)
-
Using Rust at a Startup: A Cautionary Tale
I've written a few backend APIs with rust and I have to disagree. Not only have the frameworks managed to get the ergonomics similar to your popular GC lang[0][1], the natural lack of shared mutable state of HTTP handlers means you very rarely have to encounter lifetimes and a lot of the language's advanced features. What's more, now when I go back to work with other languages, I can't help but notice the significant number of unit tests I'd not have had to write in Rust. It doesn't have a Rails and Django but it's an easy pick over anything at the language level.
A note on performance, Rust's the only langauge where I haven't had the need to update my unit test harnesses to `TRUNCATE` data base data instead of creating a separate db per test on PostgresSQL.
I'll also like to mention the gem that is SQLx[1]. As someone who's never been satisfied with ORMs, type checked SQL queries that auto-populate your custom types is revolutionary. With the error-prone langauge-SQL boundary covered, I was surprised just how good it can get making use of the builtin PostgreSQL features. Almost to the point that amount of effort the community's put to building great tools like Prisma.js and feel like a fool's errand (at least so for PosgreSQL).
[0]: https://github.com/alexpusch/rust-magic-function-params
[1]: https://github.com/juhaku/utoipa
[3]: lib.rs/crates/sqlx
-
better way to this `async fn get_blogs(Extension(pool): Extension<PgPool>` - Newbie Question
I saw this recently. Besides that, take a look at some Axum examples particularly at Extensions and Extractors.
- Axums magical handler methods amazed me when I first encountered them. I created a simple example for this pattern with detailed explanation
atlas
-
Pgroll: zero-downtime, undoable, schema migrations for Postgres
Check out: https://github.com/ariga/atlas
(I'm one of the authors of this project).
-
Show HN: Postgres Language Server
fwiw, I personally am interested in this approach too[0]. I keep running into roadblocks around the ordering of events and some of the hairy issues around "destructive" actions (eg: renaming columns). i think we can get there, especially once we make progress with this LSP.
There are other notable mentions in this space:
Reshape: https://fabianlindfors.se/blog/schema-migrations-in-postgres...
Atlas: https://atlasgo.io/
[0] https://github.com/kiwicopple/declarative-schemas
-
Database migration tool
Atlas: https://github.com/ariga/atlas. It can be integrated with any ORM, but also has an official one for GORM: https://atlasgo.io/guides/orms/gorm
-
Queryx: An Open-Source Go ORM with Automatic Schema Management
Run the queryx db:create command to create a PostgreSQL database, and then run queryx db:migrate to automatically create the database migration files and database structure. Queryx’s database schema management is built upon Atlas.
-
Tool for generating automatic migrations/schema diff
One of https://atlasgo.io's creators here.
-
Prisma like PGX Auto migration library
In this case, I'd recommend you to check Atlas: https://github.com/ariga/atlas
-
Quickly visualize your Django schemas with DjangoViz
My name is Rotem, I'm one of the creators of Atlas (https://atlasgo.io) a modern open-source schema management tool. Recently one of our engineers created a cool Django plugin that creates beautiful (in my eyes at least ;-)) and shareable ERDs from your Django data models.
-
Is there a similar tool or alternative in Go like strong_migrations?
Yes, there is: Atlas! https://atlasgo.io / https://github.com/ariga/atlas.
-
How to run DB migrations in CICD
Hi there You should take a look at Atlas - https://atlasgo.io which can help your team in many aspects of CI/ CD for databases : * CI - detect (and prevent) risky / incorrect migrations automatically * CD - support for modern deployment infrastructure (terraform, helm, etc)
-
How do you handle migrations ?
You might want to check out Atlas. It provides automatic migration planning for GORM, and has various guides on how deploying schema migration on the popular platform and tools, such as Helm, Kubernetes and ECS.
What are some alternatives?
strata - A modular, dynamic and sleek Wayland compositor with batteries included. [Moved to: https://github.com/StrataWM/stratawm]
datahub - The Metadata Platform for your Data Stack
bevy_aseprite
migrate - Database migrations. CLI and Golang library.
structopt - Parse command line arguments by defining a struct.
sqlc - Generate type-safe code from SQL
rust-gpu - 🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧
InfluxDB - Scalable datastore for metrics, events, and real-time analytics
utoipa - Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
skeema - Declarative pure-SQL schema management for MySQL and MariaDB
go - The Go programming language
pogreb - Embedded key-value store for read-heavy workloads written in Go