Settings

Theme

Show HN: I made a CLI tool to generate Rust SQLX models/queries from migrations

github.com

2 points by jayy-lmao 2 years ago · 0 comments · 1 min read

Reader

Still very much a work in progress. But with Testcontainers I've been able to do what I always dreamed of doing with pg-embed in supporting model generation from SQL migrations.

- Generate Rust structs and sqlx queries for PostgreSQL database tables or from migrations via a Postgres test container

- Queries for a Model Set easily extendable with regular sqlx.

- Generate SQL migrations based on changes in the structs vs a database or migration via a Postgres test container

Let me know what you all think!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection