Table of Contents

Class PostgreSQLSchemaProvider

Namespace
LinqToDB.DataProvider.PostgreSQL
Assembly
linq2db.dll
public class PostgreSQLSchemaProvider : SchemaProviderBase, ISchemaProvider
Inheritance
PostgreSQLSchemaProvider
Implements
Inherited Members
Extension Methods

Constructors

PostgreSQLSchemaProvider(PostgreSQLDataProvider)

public PostgreSQLSchemaProvider(PostgreSQLDataProvider provider)

Parameters

provider PostgreSQLDataProvider

Methods

BuildTableFunctionLoadTableSchemaCommand(ProcedureSchema, string)

Builds table function call command.

protected override string BuildTableFunctionLoadTableSchemaCommand(ProcedureSchema procedure, string commandText)

Parameters

procedure ProcedureSchema
commandText string

Returns

string

GetColumns(DataConnection, GetSchemaOptions)

protected override List<ColumnInfo> GetColumns(DataConnection dataConnection, GetSchemaOptions options)

Parameters

dataConnection DataConnection
options GetSchemaOptions

Returns

List<ColumnInfo>

GetDataType(string?, DataType?, GetSchemaOptions)

protected override DataTypeInfo? GetDataType(string? typeName, DataType? dataType, GetSchemaOptions options)

Parameters

typeName string
dataType DataType?
options GetSchemaOptions

Returns

DataTypeInfo

GetDataType(string?, string?, int?, int?, int?)

protected override DataType GetDataType(string? dataType, string? columnType, int? length, int? precision, int? scale)

Parameters

dataType string
columnType string
length int?
precision int?
scale int?

Returns

DataType

GetDataTypes(DataConnection)

Returns list of database data types.

protected override List<DataTypeInfo> GetDataTypes(DataConnection dataConnection)

Parameters

dataConnection DataConnection

Database connection instance.

Returns

List<DataTypeInfo>

List of database data types.

GetForeignKeys(DataConnection, IEnumerable<TableSchema>, GetSchemaOptions)

protected override IReadOnlyCollection<ForeignKeyInfo> GetForeignKeys(DataConnection dataConnection, IEnumerable<TableSchema> tables, GetSchemaOptions options)

Parameters

dataConnection DataConnection
tables IEnumerable<TableSchema>
options GetSchemaOptions

Returns

IReadOnlyCollection<ForeignKeyInfo>

GetPrimaryKeys(DataConnection, IEnumerable<TableSchema>, GetSchemaOptions)

protected override IReadOnlyCollection<PrimaryKeyInfo> GetPrimaryKeys(DataConnection dataConnection, IEnumerable<TableSchema> tables, GetSchemaOptions options)

Parameters

dataConnection DataConnection
tables IEnumerable<TableSchema>
options GetSchemaOptions

Returns

IReadOnlyCollection<PrimaryKeyInfo>

GetProcedureParameters(DataConnection, IEnumerable<ProcedureInfo>, GetSchemaOptions)

protected override List<ProcedureParameterInfo> GetProcedureParameters(DataConnection dataConnection, IEnumerable<ProcedureInfo> procedures, GetSchemaOptions options)

Parameters

dataConnection DataConnection
procedures IEnumerable<ProcedureInfo>
options GetSchemaOptions

Returns

List<ProcedureParameterInfo>

GetProcedureResultColumns(DataTable, GetSchemaOptions)

protected override List<ColumnSchema> GetProcedureResultColumns(DataTable resultTable, GetSchemaOptions options)

Parameters

resultTable DataTable
options GetSchemaOptions

Returns

List<ColumnSchema>

GetProcedures(DataConnection, GetSchemaOptions)

protected override List<ProcedureInfo>? GetProcedures(DataConnection dataConnection, GetSchemaOptions options)

Parameters

dataConnection DataConnection
options GetSchemaOptions

Returns

List<ProcedureInfo>

GetProviderSpecificType(string?)

protected override string? GetProviderSpecificType(string? dataType)

Parameters

dataType string

Returns

string

GetProviderSpecificTypeNamespace()

protected override string GetProviderSpecificTypeNamespace()

Returns

string

GetSystemType(string?, string?, DataTypeInfo?, int?, int?, int?, GetSchemaOptions)

protected override Type? GetSystemType(string? dataType, string? columnType, DataTypeInfo? dataTypeInfo, int? length, int? precision, int? scale, GetSchemaOptions options)

Parameters

dataType string
columnType string
dataTypeInfo DataTypeInfo
length int?
precision int?
scale int?
options GetSchemaOptions

Returns

Type

GetTables(DataConnection, GetSchemaOptions)

protected override List<TableInfo> GetTables(DataConnection dataConnection, GetSchemaOptions options)

Parameters

dataConnection DataConnection
options GetSchemaOptions

Returns

List<TableInfo>