IPgDatumWriter<T>
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Converts a present managed value to a live PostgreSQL datum with the resolved target identity.
public interface IPgDatumWriter<T>Type parameters:
T
The closed mapped managed type.
Methods
Section titled “Methods”Write(T, uint, PgMemoryContext)
Section titled “Write(T, uint, PgMemoryContext)”Creates a checked result, optionally representing SQL NULL, without retaining the operation’s context.
PgDatum Write(T value, uint typeOid, PgMemoryContext destination)Parameters:
value — T
The present managed value.
typeOid — uint
The current exact PostgreSQL target type OID.
destination — PgMemoryContext
The destination for native storage needed by this operation.
Returns: PgDatum
A live datum with exactly typeOid, including for SQL NULL; never a null handle.
Array element writers receive temporary storage that remains live through complete array construction. Returning a checked datum owned elsewhere does not transfer or dispose its original owner.