• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Giorgi / DuckDB.NET / 21786443631

07 Feb 2026 08:33PM UTC coverage: 89.223% (-0.2%) from 89.45%
21786443631

push

github

Giorgi
Drop netstandard2.0 and net6.0 target frameworks

Update target frameworks to net8.0 and net10.0,
remove all conditional compilation directives for
NET5_0_OR_GREATER, NET6_0_OR_GREATER, and
NET8_0_OR_GREATER. Delete polyfills and shims that
were only needed for older frameworks. Remove
[Experimental] attributes from scalar/table function
APIs.

1197 of 1389 branches covered (86.18%)

Branch coverage included in aggregate %.

12 of 12 new or added lines in 8 files covered. (100.0%)

14 existing lines in 8 files now uncovered.

2330 of 2564 relevant lines covered (90.87%)

557293.59 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

81.82
/DuckDB.NET.Data/DataChunk/Writer/DateTimeVectorDataWriter.cs
1
using System;
2
using DuckDB.NET.Data.Extensions;
3
using DuckDB.NET.Native;
4

5
namespace DuckDB.NET.Data.DataChunk.Writer;
6

7
internal sealed unsafe class DateTimeVectorDataWriter(IntPtr vector, void* vectorData, DuckDBType columnType) : VectorDataWriterBase(vector, vectorData, columnType)
72✔
8
{
9
    internal override bool AppendDateTime(DateTime value, ulong rowIndex)
10
    {
11
        if (ColumnType == DuckDBType.Date)
763,226✔
12
        {
13
            return AppendValueInternal(((DuckDBDateOnly)value.Date).ToDuckDBDate(), rowIndex);
747,797✔
14
        }
15

16
        var timestamp = value.ToTimestampStruct(ColumnType);
15,429✔
17

18
        return AppendValueInternal(timestamp, rowIndex);
15,429✔
19
    }
20

21
    internal override bool AppendDateTimeOffset(DateTimeOffset value, ulong rowIndex)
22
    {
23
        if (ColumnType == DuckDBType.TimeTz)
120✔
24
        {
25
            var timeTz = value.ToTimeTzStruct();
60✔
26

27
            return AppendValueInternal(timeTz, rowIndex);
60✔
28
        }
29

30
        if (ColumnType == DuckDBType.TimestampTz)
60!
31
        {
32
            var timestamp = value.ToTimestampStruct();
60✔
33

34
            return AppendValueInternal(timestamp, rowIndex);
60✔
35
        }
36

37
        return base.AppendDateTimeOffset(value, rowIndex);
×
38
    }
39

UNCOV
40
    internal override bool AppendDateOnly(DateOnly value, ulong rowIndex) => AppendValueInternal(((DuckDBDateOnly)value).ToDuckDBDate(), rowIndex);
×
41

42
    internal override bool AppendTimeOnly(TimeOnly value, ulong rowIndex) => AppendValueInternal(NativeMethods.DateTimeHelpers.DuckDBToTime(value), rowIndex);
×
43

44
    internal override bool AppendDateOnly(DuckDBDateOnly value, ulong rowIndex) => AppendValueInternal(value.ToDuckDBDate(), rowIndex);
120✔
45

46
    internal override bool AppendTimeOnly(DuckDBTimeOnly value, ulong rowIndex) => AppendValueInternal(NativeMethods.DateTimeHelpers.DuckDBToTime(value), rowIndex);
60✔
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc