Class PostgresExtensions
Feature extensions for PostgreSQL
Inheritance
PostgresExtensions
Assembly: FluentMigrator.Extensions.Postgres.dll
Syntax
public static class PostgresExtensions
Fields
|
Edit this page
View Source
Concurrently
Declaration
public const string Concurrently = "PostgresConcurrently"
Field Value
|
Edit this page
View Source
IncludesList
Declaration
public const string IncludesList = "PostgresIncludes"
Field Value
|
Edit this page
View Source
IndexAlgorithm
Declaration
public const string IndexAlgorithm = "PostgresIndexAlgorithm"
Field Value
|
Edit this page
View Source
IndexFilter
Declaration
public const string IndexFilter = "PostgresIndexFilter"
Field Value
|
Edit this page
View Source
Only
Declaration
public const string Only = "PostgresOnly"
Field Value
Properties
|
Edit this page
View Source
IdentityGeneration
Column identity generation ability for PostgreSQL 10 and above
Declaration
public static string IdentityGeneration { get; }
Property Value
|
Edit this page
View Source
IdentityModificationType
Column identity modification type for PostgreSQL 10 and above
Declaration
public static string IdentityModificationType { get; }
Property Value
Methods
|
Edit this page
View Source
AddIdentity(IAlterColumnOptionSyntax, PostgresGenerationType)
Adds a generated identity to the column
Declaration
public static IAlterColumnOptionSyntax AddIdentity(this IAlterColumnOptionSyntax expression, PostgresGenerationType generation)
Parameters
Returns
Remarks
|
Edit this page
View Source
AsConcurrently(ICreateIndexOptionsSyntax)
When this option is used, PostgreSQL will build the index without taking any locks that prevent concurrent inserts, updates, or deletes on the table
Whereas a standard index build locks out writes (but not reads) on the table until it's done.
There are several caveats to be aware of when using this option
Declaration
public static ICreateIndexOptionsSyntax AsConcurrently(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
AsConcurrently(ICreateIndexOptionsSyntax, bool)
When this option is used, PostgreSQL will build the index without taking any locks that prevent concurrent inserts, updates, or deletes on the table
Whereas a standard index build locks out writes (but not reads) on the table until it's done.
There are several caveats to be aware of when using this option
Declaration
public static ICreateIndexOptionsSyntax AsConcurrently(this ICreateIndexOptionsSyntax expression, bool isConcurrently)
Parameters
Returns
|
Edit this page
View Source
AsOnly(ICreateIndexOptionsSyntax)
Indicates not to recurse creating indexes on partitions, if the table is partitioned.
Declaration
public static ICreateIndexOptionsSyntax AsOnly(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
AsOnly(ICreateIndexOptionsSyntax, bool)
Indicates not to recurse creating indexes on partitions, if the table is partitioned.
Declaration
public static ICreateIndexOptionsSyntax AsOnly(this ICreateIndexOptionsSyntax expression, bool isOnly)
Parameters
Returns
|
Edit this page
View Source
DropIdentity(IAlterColumnOptionSyntax, bool)
Drops an existing identity on the column
Declaration
public static IAlterColumnOptionSyntax DropIdentity(this IAlterColumnOptionSyntax expression, bool ifExists)
Parameters
Type |
Name |
Description |
IAlterColumnOptionSyntax |
expression |
|
bool |
ifExists |
If true and the column is not an identity column, no error is thrown. In this case a notice is issued instead.
|
Returns
Remarks
|
Edit this page
View Source
Filter(ICreateIndexOptionsSyntax, string)
The constraint expression for a partial index.
Declaration
public static ICreateIndexOptionsSyntax Filter(this ICreateIndexOptionsSyntax expression, string filter)
Parameters
Returns
|
Edit this page
View Source
Identity<TNext, TNextFk>(IColumnOptionSyntax<TNext, TNextFk>, PostgresGenerationType)
Sets the column's identity generation attribute. To change or remove an existing one, use Alter.Column instead of Alter.Table.AlterColumn
Declaration
public static TNext Identity<TNext, TNextFk>(this IColumnOptionSyntax<TNext, TNextFk> expression, PostgresGenerationType generation) where TNext : IFluentSyntax where TNextFk : IFluentSyntax
Parameters
Returns
Type |
Description |
TNext |
The next step
|
Type Parameters
Name |
Description |
TNext |
|
TNextFk |
|
|
Edit this page
View Source
Include(ICreateIndexOnColumnSyntax, string)
Declaration
public static ICreateIndexNonKeyColumnSyntax Include(this ICreateIndexOnColumnSyntax expression, string columnName)
Parameters
Returns
|
Edit this page
View Source
Include(ICreateIndexOptionsSyntax, string)
Declaration
public static ICreateIndexOptionsSyntax Include(this ICreateIndexOptionsSyntax expression, string columnName)
Parameters
Returns
|
Edit this page
View Source
SetIdentity(IAlterColumnOptionSyntax, PostgresGenerationType)
Alters the strategy for an existing generated identity on the column
Declaration
public static IAlterColumnOptionSyntax SetIdentity(this IAlterColumnOptionSyntax expression, PostgresGenerationType generation)
Parameters
Returns
Remarks
|
Edit this page
View Source
Using(ICreateIndexOptionsSyntax, Algorithm)
Declaration
public static ICreateIndexOptionsSyntax Using(this ICreateIndexOptionsSyntax expression, Algorithm algorithm)
Parameters
Returns
|
Edit this page
View Source
Using(ISupportAdditionalFeatures, Algorithm)
Declaration
public static void Using(this ISupportAdditionalFeatures additionalFeatures, Algorithm algorithm)
Parameters
|
Edit this page
View Source
UsingBTree(ICreateIndexOptionsSyntax)
Declaration
public static ICreateIndexOptionsSyntax UsingBTree(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
UsingBrin(ICreateIndexOptionsSyntax)
Declaration
public static ICreateIndexOptionsSyntax UsingBrin(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
UsingGin(ICreateIndexOptionsSyntax)
Declaration
public static ICreateIndexOptionsSyntax UsingGin(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
UsingGist(ICreateIndexOptionsSyntax)
Declaration
public static ICreateIndexOptionsSyntax UsingGist(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
UsingHash(ICreateIndexOptionsSyntax)
Declaration
public static ICreateIndexOptionsSyntax UsingHash(this ICreateIndexOptionsSyntax expression)
Parameters
Returns
|
Edit this page
View Source
UsingSpgist(ICreateIndexOptionsSyntax)
Declaration
public static ICreateIndexOptionsSyntax UsingSpgist(this ICreateIndexOptionsSyntax expression)
Parameters
Returns