Table of Contents

Class D1Database

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

Represents a D1 database.

public record D1Database : IEquatable<D1Database>
Inheritance
D1Database
Implements
Inherited Members

Constructors

D1Database(string, string, DateTimeOffset?, long?, int?, string?, D1ReadReplication?, string?)

Represents a D1 database.

public D1Database(string Uuid, string Name, DateTimeOffset? CreatedAt = null, long? FileSize = null, int? NumTables = null, string? Version = null, D1ReadReplication? ReadReplication = null, string? RunningInRegion = null)

Parameters

Uuid string

The unique identifier for the database (UUID format).

Name string

The name of the database.

CreatedAt DateTimeOffset?

Timestamp when the database was created (ISO 8601).

FileSize long?

The database size in bytes.

NumTables int?

Number of tables in the database.

Version string

Database version: "production" or "alpha".

ReadReplication D1ReadReplication

Configuration for D1 read replication.

RunningInRegion string

Region code where the database is actually running (e.g., "WEUR", "ENAM"). Undocumented field present in API responses.

Properties

CreatedAt

Timestamp when the database was created (ISO 8601).

[JsonPropertyName("created_at")]
public DateTimeOffset? CreatedAt { get; init; }

Property Value

DateTimeOffset?

FileSize

The database size in bytes.

[JsonPropertyName("file_size")]
public long? FileSize { get; init; }

Property Value

long?

Name

The name of the database.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

NumTables

Number of tables in the database.

[JsonPropertyName("num_tables")]
public int? NumTables { get; init; }

Property Value

int?

ReadReplication

Configuration for D1 read replication.

[JsonPropertyName("read_replication")]
public D1ReadReplication? ReadReplication { get; init; }

Property Value

D1ReadReplication

RunningInRegion

Region code where the database is actually running (e.g., "WEUR", "ENAM"). Undocumented field present in API responses.

[JsonPropertyName("running_in_region")]
public string? RunningInRegion { get; init; }

Property Value

string

Uuid

The unique identifier for the database (UUID format).

[JsonPropertyName("uuid")]
public string Uuid { get; init; }

Property Value

string

Version

Database version: "production" or "alpha".

[JsonPropertyName("version")]
public string? Version { get; init; }

Property Value

string