forked from CommunityToolkit/Datasync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConnectionStrings.cs
More file actions
24 lines (20 loc) · 1003 Bytes
/
ConnectionStrings.cs
File metadata and controls
24 lines (20 loc) · 1003 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace CommunityToolkit.Datasync.TestCommon.Databases;
[ExcludeFromCodeCoverage]
public static class ConnectionStrings
{
/// <summary>
/// The connection string for CosmosDb database with standard NoSQL API.
/// </summary>
public static readonly string CosmosDb = Environment.GetEnvironmentVariable("COSMOS_CONNECTION_STRING");
/// <summary>
/// The connection string for CosmosDb database with MongoDB API.
/// </summary>
public static readonly string CosmosMongo = Environment.GetEnvironmentVariable("MONGO_CONNECTION_STRING");
/// <summary>
/// If true, enables logging of SQL queries to the console.
/// </summary>
public static readonly bool EnableLogging = (Environment.GetEnvironmentVariable("ENABLE_SQL_LOGGING") ?? "false") == "true";
}