fistons :rust: :java: :godot: · @fistons
29 followers · 124 posts · Server fosstodon.org

I just fell in love with testing features. Using it with the crate for test assertions is a pleasure.

#sqlx #speculoos #rustlang

Last updated 1 year ago

fistons :rust: :java: :godot: · @fistons
29 followers · 124 posts · Server fosstodon.org

After almost two days, I finally port my RSS Api from to

I really liked SeaORM, but I need something closer to the database so I can tinker with my queries.

I still need to rewrite the tests but... not today!

#rustlang #SeaORM #sqlx

Last updated 1 year ago

Mo :ferris: :tux: · @mo8it
391 followers · 1400 posts · Server fosstodon.org

I did develop and publish it in about 6 days in my free time. For people that say that is an overkill for backends 🤨

It is often a matter of practice to be productive in any language. Rust already offers the ecosystem.

I did write a helper library that is highly opinionated to be even more productive and share code between my + + projects:

docs.rs/oxi-axum-helpers/lates

It is not documented yet 😅 I will document it and might even write a blog post about it 😃

#rust #Axum #sqlx #askama #rustlang

Last updated 1 year ago

fistons :rust: :java: :godot: · @fistons
29 followers · 124 posts · Server fosstodon.org

I'm currently using for the RSS Api I'm working on. It's great and all, but sometime it can be a bit frustrating, because of the whole boiler plate that can happen sometime.

So I try to convert everything to and I get frustrated by other things.

Life is hard.

#SeaORM #sqlx #rust #rustlang

Last updated 1 year ago

potato · @potatomeow
5 followers · 104 posts · Server fosstodon.org

couldn't find much info on seeding the with unfortunately, would be cool to have sqlx-cli read from a json seed file for dev and testing, cus json is kinda portable enough that i can throw it to an android app and seed it to its local db too @_@

#database #sqlx

Last updated 1 year ago

potato · @potatomeow
5 followers · 101 posts · Server fosstodon.org

found about that i forgot to use raw string literals for sql statements, client was given the super power to terminate and inject sql for free. :D

#sqlx

Last updated 1 year ago

Mo :ferris: :tux: · @mo8it
183 followers · 815 posts · Server fosstodon.org

🧰 integration in

mo8it.com/blog/sqlx-integratio

:ferris: backends are relatively easy after learning the basics of Rust!

:postgresql: This blog post is about using SQLx to interact with a database in an Axum backend.

⭐️ It does also show how to use states and return JSON in Axum.

It has been a while since my last blog post. This is because the new semester has started. I am trying my best 😅

Would you prefer shorter posts? ✂️

Made with ❤️ for the community.

#sqlx #Axum #rust #postgresql #rustlang

Last updated 2 years ago

Mo :ferris: :tux: · @mo8it
179 followers · 806 posts · Server fosstodon.org

I have removed my Github stars from projects related to Web with (Flask, SQLAlchemy, Guinicorn etc.) :python:

I feel guilty about me using them in the past... Poor users of my Python backend... :blobfoxmelt3:

and , let's dominate backends with ! :ferris: 🚀

Why? Reliability, correctness, performance, resource usage, etc.

#python #Axum #sqlx #rustlang #rust

Last updated 2 years ago

Jan :rust: :ferris: · @janriemer
513 followers · 2878 posts · Server floss.social

Oh wow, this looks freakin' awesome! 🤩

welds - An async written in using the framework.

github.com/weldsorm/welds

You can even drop down to low-level sqlx queries, in case you need it:

github.com/weldsorm/welds/blob

#orm #Rust #sqlx #rustlang #CrateTip #crate

Last updated 2 years ago

Pineiden · @pineiden
126 followers · 746 posts · Server chilemasto.casa

En esta sesión número 20 del Taller de Rust continuamos con el trabajo de Rust y SQLx para poder operar con nuestro lenguaje favorito y bases de datos, en especial postgres.
Ccreación de la API para hacer INSERT, es decir crear nuevos datos en las tablas.

Además revisamos la creción de test, realizando un par de pruebas sencillas, a modo de introducción.

youtube.com/watch?v=qcqfBCMxuy

#rust #unittest #sql #sqlx #postgres #fixtures

Last updated 2 years ago

Elmeri :fedora: · @cindox
19 followers · 83 posts · Server fosstodon.org

Building a project using all of them are new to me. Maybe I took too much at once :blobcatdunno: atleast im learning new stuff.

#rust #postgresql #sqlx #docker

Last updated 2 years ago

Pineiden · @pineiden
124 followers · 705 posts · Server chilemasto.casa

Sesión 19 del *Taller de Rust* trata de trabajar con el lenguaje, creando consultas sql a la database *postgres*. Mejoramos las funciones de consulta a ciudades y temperatura, incluyendo filtros
especificos que repercuten en una consulta un poco más
compleja. Aprendemos a usar el crate *clap*.
Finalizamos con la implementación del
sistema de migraciones.

youtube.com/watch?v=h8KB1iHez_

#rust #programacion #database #sqlx #postgres #migration

Last updated 2 years ago

Jon G Stødle · @jonstodle
220 followers · 1763 posts · Server snabelen.no

for is kind of magic🪄

#sqlx #rustlang

Last updated 2 years ago

Pineiden · @pineiden
123 followers · 655 posts · Server chilemasto.casa

Sesión 17 Taller de Rust.
En esta sesión continuamos parte del tutorial de Tokio, aprendemos el uso de canales de distintos tipos para enviar y recibir mensajes.
Hacemos un repaso de variables de ambiente usando rust, los crates dotenv y env.
Además iniciamos una práctica de ejemplo para crear o administrar base de datos posgres, y con rust inicio del crate sqlx básico para realizar consultas.

youtube.com/watch?v=3mFJqFO2vS

#rust #db #sql #sqlx #tokio #channels #programacion #software #workshop #emacs

Last updated 2 years ago

Mo :ferris: :tux: · @mo8it
117 followers · 567 posts · Server fosstodon.org

@kubikpixel @AstraKernel I made a blog post about that reminded me of this thread 😃

fosstodon.org/@mo8it/110180460

#sqlx

Last updated 2 years ago

Mo :ferris: :tux: · @mo8it
104 followers · 536 posts · Server fosstodon.org

🧰 SQLx - Interacting with databases in

mo8it.com/blog/sqlx-interactin

3️⃣ In my third blog post, I present with and show the power/magic of compile-time checked queries.

💉 The blog post also shows if SQLx is safe against SQL injections.

🤓 At the end, I give my opinion about why I would not go back to ORMs after trying SQLx.

😇 I have been working on this post for about a week. If you read it, please give me some feedback for the next posts. See the first comment.

#rust #sqlx #postgresql #rustlang

Last updated 2 years ago

Mo :ferris: :tux: · @mo8it
83 followers · 484 posts · Server fosstodon.org

2️⃣ My second blog post:
Containerized with rootless :container_linux:

mo8it.com/blog/containerized-p

It is a short introduction to running rootless Podman containers for development or on a server with PostgreSQL as a central example.

This is an optional preparation for the next post about using in 🦀

Running PostgreSQL with Podman is something that was asked at least twice on Mastodon from devs using

Feedback appreciated 😇

#postgresql #podman #sqlx #rustlang #fedora #silverblue #linux

Last updated 2 years ago

Mo :ferris: :tux: · @mo8it
62 followers · 442 posts · Server fosstodon.org

The next planed topics are:
- Containerized in and
- Databases in Rust with
- Rust GUIs with
- Rapid prototyping in Rust
- Configuration files (e.g. YAML) with
- client in Rust with

Any suggestions? 😀

If you are only interested in Rust, you can subscribe to the feed of the tag only: mo8it.com/tags

Feel free to take inspiration if you like the website. Here is the source code: codeberg.org/mo8it/website

#postgresql #docker #podman #sqlx #egui #serde #email #lettre #rust #tailwindcss

Last updated 2 years ago

0xC0DEC0DE07E7 · @c0dec0dec0de
176 followers · 1570 posts · Server hachyderm.io

Is there an accepted pattern for replacing your database pool in an application? As in, the system is rotating the database password, updates the file handle it’s passed through to the application, and then my application should reconnect using the new credentials and drop the old connection.

#actixweb #rustlang #rust #sqlx #programmingpatterns

Last updated 2 years ago

Astra Kernel :verified: · @AstraKernel
1059 followers · 1375 posts · Server infosec.exchange