Skip to content

PgSqlFileAttribute

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Includes a compiler AdditionalFiles SQL input in the installation script with explicit dependency ordering.

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

Declares a named SQL file without reading files from extension runtime code. Empty files remain dependency anchors, and authored SQL text is preserved.

Inheritance: object, Attribute

Initializes a file block whose dependency identifier is the file name without its final extension, as pgrx’s extension_sql_file! names a file without an explicit name.

public PgSqlFileAttribute(string path)

Parameters:

path — string

The project-relative or absolute path of an AdditionalFiles input.

Both / and </code> separate directories, so the identifier does not depend on the build host. A name that starts with its only dot, such as .sql, is kept whole.

Includes a compiler AdditionalFiles SQL input in the installation script with explicit dependency ordering.

public PgSqlFileAttribute(string name, string path)

Parameters:

name — string

The unique, case-sensitive dependency identifier.

path — string

The project-relative or absolute path of an AdditionalFiles input.

Declares a named SQL file without reading files from extension runtime code. Empty files remain dependency anchors, and authored SQL text is preserved.

Gets or sets identifiers of declarations that must run after this file.

public string[] Before { get; set; }

Value: string[]

Gets the file block’s dependency identifier.

public string Name { get; }

Value: string

Gets or sets whether this file runs first, last, or according to its explicit dependencies.

public PgSqlOrder Order { get; set; }

Value: PgSqlOrder

Gets the path resolved relative to the extension project directory.

public string Path { get; }

Value: string

Gets or sets whether every object and reference in this file permits extension schema relocation. The default is false.

public bool Relocatable { get; set; }

Value: bool

Gets or sets identifiers of declarations that must run before this file.

public string[] Requires { get; set; }

Value: string[]