Skip to content

PgTimestampConverter

Namespace: Ankus.Serialization

Assembly: Ankus.Runtime.dll

Converts full-range wall-clock timestamps to and from PostgreSQL ISO strings on the active backend.

public sealed class PgTimestampConverter : JsonConverter<PgTimestamp>

Inheritance: object, JsonConverter, JsonConverter<PgTimestamp>

public PgTimestampConverter()

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Section titled “Read(ref Utf8JsonReader, Type, JsonSerializerOptions)”
public override PgTimestamp Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters:

reader — Utf8JsonReader

typeToConvert — Type

options — JsonSerializerOptions

Returns: PgTimestamp

Write(Utf8JsonWriter, PgTimestamp, JsonSerializerOptions)

Section titled “Write(Utf8JsonWriter, PgTimestamp, JsonSerializerOptions)”
public override void Write(Utf8JsonWriter writer, PgTimestamp value, JsonSerializerOptions options)

Parameters:

writer — Utf8JsonWriter

value — PgTimestamp

options — JsonSerializerOptions