realworld-axum-sqlx
sqlc
Our great sponsors
realworld-axum-sqlx | sqlc | |
---|---|---|
12 | 169 | |
671 | 10,837 | |
5.1% | 5.6% | |
0.0 | 9.7 | |
4 months ago | 4 days ago | |
Rust | Go | |
GNU Affero General Public License v3.0 | MIT License |
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.
realworld-axum-sqlx
-
Hey Rustaceans! Got a question? Ask here (7/2023)!
This was one of the objectives when we created https://github.com/launchbadge/realworld-axum-sqlx
-
Hey Rustaceans! Got a question? Ask here! (28/2022)!
Clap can actually load values from the environment now: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/config.rs
-
Entrait v0.3.2
I'm working on a PoC to rewrite the realworld app from launchbadge to use entrait: https://github.com/audunhalland/rust-realworld-ioc/ (work in progress), maybe it can be used as inspiration.
-
A(nother) Realworld implementation: tokio, axum, and sqlx
While there already exists a fantastic implementation of the spec written by the sqlx authors, I wanted to use this as a Rust playground for myself and others to poke around the ecosystem. I'm sure there's quite a bit of room for improvement, and I'm looking forward to opening this up for those in a similar boat and learning Rust.
-
Hey Rustaceans! Got a question? Ask here! (25/2022)!
I'm following some examples for creating a server with Axum like realworld-axum-sqlx and customize-extractor-error. The second one shows how to get request errors related to json and I'd like to know if there's anyway to make the where clause more error-proof.
-
Code review request
I've just migrated from actix-web to axum, so it's the backend that I'm interested in people's thoughs on. I've taken a fair amount of design inspiration from the realworld-axum-sqlx project.
-
The Rustacean way to build a complete web app?
Here is a realworld-spec in Axum: https://github.com/launchbadge/realworld-axum-sqlx
-
Backend using rust
https://github.com/launchbadge/realworld-axum-sqlx is Axum based implementation of the Realworld specification
-
Tools to generate type safe code models from Postgres schema?
Here's an example codebase using these features: https://github.com/launchbadge/realworld-axum-sqlx/blob/main/src/http/articles/listing.rs
-
Web development
Realworld Spec with Axum
sqlc
-
Give Up Sooner
"Is there a way to get sqlc to use pointers for nullable columns instead of the sql.Null types?"
-
Show HN: Sqlbind a Python library to compose raw SQL
I came across this yesterday for golang: https://sqlc.dev which is somewhat like what you want, maybe.
Not sure it allows you to parameterize table names but the basic idea is codegen from sql queries so you are working with go code (autocompletion etc).
- API completa em Golang - Parte 7
-
ORMs are nice but they are the wrong abstraction
Agreed, but tools like https://sqlc.dev, which I mention in the article, are a good trade-off that allows you to have verified, testable, SQL in your code.
- API completa em Golang - Parte 6
-
Go ORMs Compared
sqlc is not strictly a conventional ORM. It offers a unique approach by generating Go code from SQL queries. This allows developers to write SQL, which sqlc then converts into type-safe Go code, reducing the boilerplate significantly. It ensures that your queries are syntactically correct and type-safe. sqlc is ideal for those who prefer writing SQL and are looking for an efficient way to integrate it into a Go application.
-
Type-safe Data Access in Go using Prisma and sqlc
I was browsing awesome-go for ideas on how to setup my data access layer when I stumbled on sqlc. It seemed like a great option. Code generation is a strategy often used in the Go ecosystem and making my queries safe at compile time was an idea I really liked. Knex was great, but it required of me that I test thoroughly my queries at runtime and that I sanitize my query results to ensure type safety within my application.
-
Level UP your RDBMS Productivity in GO
Now, we are going to generate the code. For this purpose, we are going to use sqlc.
-
What 3rd-party libraries do you use often/all the time?
https://github.com/sqlc-dev/sqlc — for use with //go:generate
- API completa em Golang - Parte 1
What are some alternatives?
zero-to-production - Code for "Zero To Production In Rust", a book on API development using Rust.
sqlx - general purpose extensions to golang's database/sql
workers-rs - Write Cloudflare Workers in 100% Rust via WebAssembly
GORM - The fantastic ORM library for Golang, aims to be developer friendly
docker-rust - The official Docker images for Rust
SQLBoiler - Generate a Go ORM tailored to your database schema.
realworld - "The mother of all demo apps" — Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
ent - An entity framework for Go
Seed - A Rust framework for creating web apps
jet - Type safe SQL builder with code generation and automatic query result data mapping
validator - Simple validation for Rust structs
pgx - PostgreSQL driver and toolkit for Go