---
title: "Discussion on \"rust: a first connection to postgres\" | Hashnode"
description: "Discussion on \"rust: a first connection to postgres\". The first example of code I wrote is a basic connection to postgres. It is a nice exercise because it learns you how to interact with a config file, to handle errors, to import crates and to organize the file structure.\nHere is my current structure:\n..."
url: "https://hashnode.com/posts/rust-a-first-connection-to-postgres/61443971dbe60379639b171d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [rust: a first connection to postgres](https://fberrez.hashnode.dev/rust-a-first-connection-to-postgres?utm_source=hashnode&utm_medium=feed)

The first example of code I wrote is a basic connection to postgres. It is a nice exercise because it learns you how to interact with a config file, to handle errors, to import crates and to organize the file structure. Here is my current structure: ...

Sep 17, 2021 · 2 min read · fberrez.hashnode.dev  
Read the article

-   [#rust](https://hashnode.com/tag/rust)
-   [#postgresql](https://hashnode.com/tag/postgresql)
-   [#learning-journey](https://hashnode.com/tag/learning-journey)

## Written by

[fberrez](https://hashnode.com/@fberrez)

@fberrez

  
[View profile](https://hashnode.com/@fberrez)

software engineer who hated and now loves nodejs

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
