Skip to content

Commit

Permalink
Update README.md with postgres informations for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
diegodrf committed Jun 23, 2023
1 parent 939d404 commit d969e3a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# LinkDotNet.Blog
# LinkDotNet.Blog
[![.NET](https://github.com/linkdotnet/Blog/actions/workflows/dotnet.yml/badge.svg?branch=master)](https://github.com/linkdotnet/Blog/actions/workflows/dotnet.yml)
[![CodeQL](https://github.com/linkdotnet/Blog/actions/workflows/codeql.yml/badge.svg)](https://github.com/linkdotnet/Blog/actions/workflows/codeql.yml)

Expand Down Expand Up @@ -103,6 +103,7 @@ Currently, there are 5 Storage-Provider:
* Sqlite - Based on EF Core, it can be easily adapted for other Sql Dialects. The tables are automatically created.
* SqlServer - Based on EF Core, it can be easily adapted for other Sql Dialects. The tables are automatically created.
* MySql - Based on EF Core - also supports MariaDB.
* Postgres - Based on EF Core.

The default (when you clone the repository) is the `InMemory` option. That means every time you restart the service, all posts and related objects are gone.

Expand Down Expand Up @@ -243,3 +244,10 @@ For MySql use the following:
"PersistenceProvider": "MySql"
"ConnectionString": "Server=YOURSERVER;User ID=YOURUSERID;Password=YOURPASSWORD;Database=YOURDATABASE"
```

For Postgres use the following:

```
"PersistenceProvider": "Postgres"
"ConnectionString": "Host=YOURSERVER;Database=YOURDATABASE;Username=YOURUSERNAME;Password=YOURPASSWORD"
```

0 comments on commit d969e3a

Please sign in to comment.