Skip to content

Commit

Permalink
Readme was updated
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Oct 29, 2023
1 parent 8045c57 commit 2b70253
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ private void ConfigureDatabase(IServiceCollection services)
ConnectionTimeout = 5000,
MessageTimeout = 10000
};
services.ConfigureEdgeDbDatabase("10.50.55.41", Settings.Database.ProjectName, poolCfg);
services.ConfigureEdgeDbDatabase("10.50.55.41", Settings.Database.ProjectName, poolCfg, null, true);
}
```

or if you are running app && edgedb on the same machine use `ConfigureLocalEdgeDbDatabase`:
or you could pass an array of directories where edgedb project credentials could be found, i.e. `services.ConfigureEdgeDbDatabase("10.50.55.41", Settings.Database.ProjectName, poolCfg, new[] {"/usr/myapp/edgedb", "/usr/share"}, true);`

or if you are running app && edgedb on the same machine use simplified method `ConfigureLocalEdgeDbDatabase`:

```csharp
private void ConfigureDatabase(IServiceCollection services)
Expand All @@ -29,7 +31,7 @@ private void ConfigureDatabase(IServiceCollection services)
ConnectionTimeout = 5000,
MessageTimeout = 10000
};
services.ConfigureLocalEdgeDbDatabase( Settings.Database.ProjectName, poolCfg);
services.ConfigureLocalEdgeDbDatabase(Settings.Database.ProjectName, poolCfg);
}
```

Expand Down

0 comments on commit 2b70253

Please sign in to comment.