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

Giorgi / DuckDB.NET / 21786556530

07 Feb 2026 08:39PM UTC coverage: 89.155% (-0.07%) from 89.223%
21786556530

push

github

Giorgi
Added support for clearing in-progress adapter

Requires DuckDB 1.5

1199 of 1393 branches covered (86.07%)

Branch coverage included in aggregate %.

6 of 8 new or added lines in 1 file covered. (75.0%)

193 existing lines in 43 files now uncovered.

2336 of 2572 relevant lines covered (90.82%)

557295.56 hits per line

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

89.66
/DuckDB.NET.Data/DuckDBParameter.cs
1
using DuckDB.NET.Data.PreparedStatement;
2
using System.ComponentModel;
3
using System.Diagnostics.CodeAnalysis;
4

5
namespace DuckDB.NET.Data;
6

7
public class DuckDBParameter : DbParameter
8
{
9
    private const DbType DefaultDbType = DbType.String;
10

11
    private object? value;
12

13
    public override DbType DbType { get; set; }
2,244✔
14

15
    [AllowNull]
16
    [DefaultValue("")]
17
    public override string ParameterName { get; set; }
2,916✔
18

19
    public override object? Value
20
    {
21
        get => value;
1,074✔
22
        set
23
        {
24
            if (this.value != value)
75✔
25
            {
26
                this.value = value;
75✔
27
                DbType = DuckDBTypeMap.GetDbTypeForValue(value);
75✔
28
            }
29
        }
75✔
30
    }
31

32
    public override ParameterDirection Direction { get; set; }
69✔
UNCOV
33
    public override bool IsNullable { get; set; }
×
34

35
    [AllowNull]
36
    [DefaultValue("")]
37
    public override string SourceColumn { get; set; }
1,035✔
UNCOV
38
    public override bool SourceColumnNullMapping { get; set; }
×
39
    public override int Size { get; set; }
30✔
40

41
    public DuckDBParameter()
42
        : this (string.Empty, DefaultDbType, null)
78✔
43
    { }
78✔
44

45
    public DuckDBParameter(object value) 
46
        : this(string.Empty, DuckDBTypeMap.GetDbTypeForValue(value), value)
810✔
47
    {
48
    }
810✔
49

50
    public DuckDBParameter(DbType type, object? value) 
51
        : this(string.Empty, type, value)
6✔
52
    {
53
    }
6✔
54

55
    public DuckDBParameter(string name, object? value) 
56
        : this(name, DuckDBTypeMap.GetDbTypeForValue(value), value)
141✔
57
    {
58
    }
141✔
59

60
    public DuckDBParameter(string name, DbType type, object? value)
1,035✔
61
    {
62
        DbType = type;
1,035✔
63
        ParameterName = name;
1,035✔
64
        this.value = value;
1,035✔
65
        SourceColumn = string.Empty;
1,035✔
66
    }
1,035✔
67

UNCOV
68
    public override void ResetDbType() => DbType = DefaultDbType;
×
69
}
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