Table of Contents

Class D1QueryResult<TRow>

Namespace
Cloudflare.NET.Accounts.D1.Models
Assembly
Cloudflare.NET.dll

Result of a D1 query execution.

public record D1QueryResult<TRow> : IEquatable<D1QueryResult<TRow>>

Type Parameters

TRow

The type of each row in the results.

Inheritance
D1QueryResult<TRow>
Implements
Inherited Members

Constructors

D1QueryResult(D1QueryMeta, IReadOnlyList<TRow>, bool)

Result of a D1 query execution.

public D1QueryResult(D1QueryMeta Meta, IReadOnlyList<TRow> Results, bool Success)

Parameters

Meta D1QueryMeta

Metadata about the query execution.

Results IReadOnlyList<TRow>

The query result rows.

Success bool

Whether the query executed successfully.

Properties

Meta

Metadata about the query execution.

[JsonPropertyName("meta")]
public D1QueryMeta Meta { get; init; }

Property Value

D1QueryMeta

Results

The query result rows.

[JsonPropertyName("results")]
public IReadOnlyList<TRow> Results { get; init; }

Property Value

IReadOnlyList<TRow>

Success

Whether the query executed successfully.

[JsonPropertyName("success")]
public bool Success { get; init; }

Property Value

bool