Skip to content

PgModuleAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Customizes the native module identity reported by PostgreSQL 18 and later.

[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = false)]
public sealed class PgModuleAttribute : Attribute

Omitted values use the project’s assembly name and version. This identity is independent of the SQL extension name and version in its control file. Earlier PostgreSQL versions retain their ordinary module compatibility block.

Inheritance: object, Attribute

public PgModuleAttribute()

Gets or sets the module name, or null to use the managed assembly name.

public string? Name { get; set; }

Value: string

Gets or sets the module version, or null to use the evaluated project version.

public string? Version { get; set; }

Value: string