Skip to content

PgGucAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Shares native registration metadata and typed hook names among PostgreSQL configuration declarations.

[AttributeUsage(AttributeTargets.Property)]
public abstract class PgGucAttribute : Attribute

Inheritance: object, Attribute

Shares native registration metadata and typed hook names among PostgreSQL configuration declarations.

protected PgGucAttribute(string name, string shortDescription)

Parameters:

name — string

The qualified configuration name.

shortDescription — string

The short configuration description.

Gets or sets the static assignment method that receives the accepted value and optional owned extra bytes.

public string? Assign { get; set; }

Value: string

Gets or sets the static check method that accepts a proposed value and source and returns a typed check result.

public string? Check { get; set; }

Value: string

Gets or sets when PostgreSQL permits changes. The default allows session changes by any user.

public PgGucContext Context { get; set; }

Value: PgGucContext

Gets or sets additional PostgreSQL configuration behaviors.

public PgGucOptions Flags { get; set; }

Value: PgGucOptions

Gets or sets the optional extended description.

public string? LongDescription { get; set; }

Value: string

Gets the qualified PostgreSQL configuration name.

public string Name { get; }

Value: string

Gets the short configuration description.

public string ShortDescription { get; }

Value: string

Gets or sets the static display method that receives the current value and optional owned extra bytes.

public string? Show { get; set; }

Value: string

Gets or sets the base parsing and display unit for an integer or real setting.

public PgGucUnit Unit { get; set; }

Value: PgGucUnit