Skip to content

Pass WriteOptions as an argument to Client.WriteN(...) methods l #281

Description

@karel-rehor

Use Case

While reviewing #269, I noticed that WriteOptions cannot be passed as an argument per call to the WriteRecordsAsync method.

currently

await client.WriteRecordsAsync(data);

would like to...

            var wo = new WriteOptions()
            {
                Precision = WritePrecision.Ms,
                UseV2Api = false,
                AcceptPartial = true,
                NoSync = true
            };

            await client.WriteRecordsAsync(data, WriteOptions = wo);
  1. Passing write options to methods is a feature in other Influxdb3 client libraries.
  2. In some other CSharp libraries for database drivers and clients, the idiom of passing options through the method is supported. See for example in Mongodb csharp

It would be NICE if our libraries supported this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions