Skip to content

PgDdlCommand

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Owns one command’s descriptive metadata from pg_event_trigger_ddl_commands, independently of the callback lifetime. The opaque pg_ddl_command value and parse-tree pointers are not exposed.

public sealed class PgDdlCommand

Inheritance: object

Gets the object’s catalog OID, or null for commands without one object address, such as GRANT.

public uint? ClassId { get; }

Value: uint?

Gets PostgreSQL’s command tag for this collected command.

public string CommandTag { get; }

Value: string

Gets whether the command was collected while an extension script was running.

public bool InExtension { get; }

Value: bool

Gets the object’s OID, or null when the collected command has no single object address.

public uint? ObjectId { get; }

Value: uint?

Gets the quoted, qualified object identity, or null when the command has no single object address.

public string? ObjectIdentity { get; }

Value: string

Gets the subobject number, zero for a whole object, or null when no object address is available.

public int? ObjectSubId { get; }

Value: int?

Gets PostgreSQL’s description of the object type.

public string ObjectType { get; }

Value: string

Gets the schema name, or null for schema-less objects and commands without a single object address.

public string? SchemaName { get; }

Value: string