-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathMongoSourceSettings.cs
More file actions
26 lines (21 loc) · 974 Bytes
/
MongoSourceSettings.cs
File metadata and controls
26 lines (21 loc) · 974 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
25
26
using Cosmos.DataTransfer.Interfaces.Manifest;
namespace Cosmos.DataTransfer.MongoExtension.Settings;
public class MongoSourceSettings : MongoBaseSettings
{
public string? Collection { get; set; }
/// <summary>
/// MongoDB query filter to apply during data migration. Can be specified as:
/// - Direct JSON query string (e.g., "{\"field\":{\"$gte\":\"value\"}}")
/// - Path to a JSON file containing the query
/// </summary>
public string? Query { get; set; }
/// <summary>
/// The number of documents to return per batch when reading from MongoDB.
/// This can help prevent cursor timeout errors when reading large collections.
/// If not specified, MongoDB's default batch size will be used.
/// </summary>
public int? BatchSize { get; set; }
[SensitiveValue]
public Dictionary<string, IReadOnlyDictionary<string, object>>? KMSProviders { get; set; }
public string? KeyVaultNamespace { get; set; }
}