Skip to content

Commit

Permalink
docusaurus preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 committed Nov 26, 2024
1 parent d85c8d2 commit 67fef99
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions postgresql/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: PostgreSQL Example
title: PostgreSQL
keywords: [postgresql]
---

Expand Down Expand Up @@ -28,6 +28,19 @@ Ensure you have the following installed:
go get
```

3. Set up your PostgreSQL database and update the connection string in the code.

## Running the Application

1. Start the application:
```sh
go run main.go
```

2. Access the application at `http://localhost:3000`.

## Example

Here is an example of how to connect to a PostgreSQL database in a Fiber application:

```go
Expand All @@ -43,17 +56,6 @@ import (
func main() {
// Database connection
3. Set up your PostgreSQL database and update the connection string in the code.
## Running the Application
1. Start the application:
```sh
go run main.go
```
## Example
connStr := "user=username dbname=mydb sslmode=disable"
db, err := sql.Open("postgres", connStr)
if err != nil {
Expand Down

0 comments on commit 67fef99

Please sign in to comment.