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
UuidstringThe unique identifier for the database (UUID format).
NamestringThe name of the database.
CreatedAtDateTimeOffset?Timestamp when the database was created (ISO 8601).
FileSizelong?The database size in bytes.
NumTablesint?Number of tables in the database.
VersionstringDatabase version: "production" or "alpha".
ReadReplicationD1ReadReplicationConfiguration for D1 read replication.
RunningInRegionstringRegion 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
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
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
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
Uuid
The unique identifier for the database (UUID format).
[JsonPropertyName("uuid")]
public string Uuid { get; init; }
Property Value
Version
Database version: "production" or "alpha".
[JsonPropertyName("version")]
public string? Version { get; init; }