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
TRowThe type of each row in the results.
- Inheritance
-
D1QueryResult<TRow>
- Implements
-
IEquatable<D1QueryResult<TRow>>
- Inherited Members
Constructors
D1QueryResult(D1QueryMeta, IReadOnlyList<TRow>, bool)
Result of a D1 query execution.
public D1QueryResult(D1QueryMeta Meta, IReadOnlyList<TRow> Results, bool Success)
Parameters
MetaD1QueryMetaMetadata about the query execution.
ResultsIReadOnlyList<TRow>The query result rows.
SuccessboolWhether the query executed successfully.
Properties
Meta
Metadata about the query execution.
[JsonPropertyName("meta")]
public D1QueryMeta Meta { get; init; }
Property Value
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; }