---
title: "A tale of TimescaleDB, SQLx and testing in Rust"
url: https://daily.dev/posts/a-tale-of-timescaledb-sqlx-and-testing-in-rust-rj4po8xne
source_url: https://blog.exein.io/sqlx_testing-blog-post-by-bogdan/
type: article
source: "Lobsters"
published: 2024-05-02T14:19:01.418Z
updated: 2024-05-09T08:58:27.770Z
tags: ["testing", "database", "rust", "timescaledb"]
reading_time: 19
upvotes: 3
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# A tale of TimescaleDB, SQLx and testing in Rust

**[Lobsters](https://daily.dev/sources/lobsters)** · 19 min read · 3 upvotes · 0 comments

## Summary

This post explores the author's experience with using TimescaleDB, SQLx, and testing in Rust. The author discusses the features of TimescaleDB, the use of SQLx for interfacing with the database, and the challenges faced when testing parts of the system that use a live database. The author also describes their use of wrapper proc macros and their attempts to mitigate deadlock issues. Overall, the author aims to provide insights and solutions for others facing similar challenges.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.exein.io/sqlx_testing-blog-post-by-bogdan/>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#testing](https://daily.dev/tags/testing), [#database](https://daily.dev/tags/database), [#rust](https://daily.dev/tags/rust), [#timescaledb](https://daily.dev/tags/timescaledb)

[View this post on daily.dev](https://daily.dev/posts/a-tale-of-timescaledb-sqlx-and-testing-in-rust-rj4po8xne)
