PgDiagnostic
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Describes an owned PostgreSQL message with structured diagnostics for client and server reporting.
public sealed class PgDiagnosticInheritance: object
Constructors
Section titled “Constructors”PgDiagnostic(string)
Section titled “PgDiagnostic(string)”Creates a message whose SQLSTATE defaults to PostgreSQL’s severity-dependent code.
public PgDiagnostic(string message)Parameters:
message — string
The primary message, treated as literal text.
Properties
Section titled “Properties”ColumnName
Section titled “ColumnName”Gets the associated column name.
public string? ColumnName { get; init; }Value: string
ConstraintName
Section titled “ConstraintName”Gets the associated constraint name.
public string? ConstraintName { get; init; }Value: string
Context
Section titled “Context”Gets additional execution context.
public string? Context { get; init; }Value: string
DataTypeName
Section titled “DataTypeName”Gets the associated data type name.
public string? DataTypeName { get; init; }Value: string
Detail
Section titled “Detail”Gets additional detail for clients and the server log.
public string? Detail { get; init; }Value: string
DetailLog
Section titled “DetailLog”Gets detail which replaces Detail in the server log and is never sent to clients.
public string? DetailLog { get; init; }Value: string
Domain
Section titled “Domain”Gets the message domain PostgreSQL records for the report, as C’s ereport_domain and pgrx’s
ereport_domain! supply, or null for PostgreSQL’s own domain.
public string? Domain { get; init; }Value: string
The domain names the gettext catalog for message translation. PostgreSQL stores it with the error, so callers that catch the report read it back from Domain.
Gets the source file name when explicitly supplied by the extension.
public string? File { get; init; }Value: string
Gets a suggested corrective action.
public string? Hint { get; init; }Value: string
InternalPosition
Section titled “InternalPosition”Gets the one-based character position in InternalQuery.
public int InternalPosition { get; init; }Value: int
InternalQuery
Section titled “InternalQuery”Gets the internally executed query.
public string? InternalQuery { get; init; }Value: string
Gets the source line number.
public int Line { get; init; }Value: int
Message
Section titled “Message”Gets the primary message.
public string Message { get; }Value: string
Position
Section titled “Position”Gets the one-based character position in the client query.
public int Position { get; init; }Value: int
Routine
Section titled “Routine”Gets the source routine name.
public string? Routine { get; init; }Value: string
SchemaName
Section titled “SchemaName”Gets the associated schema name.
public string? SchemaName { get; init; }Value: string
SqlState
Section titled “SqlState”Gets the optional five-character uppercase ASCII SQLSTATE.
public string? SqlState { get; init; }Value: string
TableName
Section titled “TableName”Gets the associated table name.
public string? TableName { get; init; }Value: string