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
ProcedureSchemacommandText
string
Returns
GetColumns(DataConnection, GetSchemaOptions)
protected override List<ColumnInfo> GetColumns(DataConnection dataConnection, GetSchemaOptions options)
Parameters
dataConnection
DataConnectionoptions
GetSchemaOptions
Returns
GetDataType(string?, DataType?, GetSchemaOptions)
protected override DataTypeInfo? GetDataType(string? typeName, DataType? dataType, GetSchemaOptions options)
Parameters
typeName
stringdataType
DataType?options
GetSchemaOptions
Returns
GetDataType(string?, string?, int?, int?, int?)
protected override DataType GetDataType(string? dataType, string? columnType, int? length, int? precision, int? scale)
Parameters
Returns
GetDataTypes(DataConnection)
Returns list of database data types.
protected override List<DataTypeInfo> GetDataTypes(DataConnection dataConnection)
Parameters
dataConnection
DataConnectionDatabase 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
DataConnectiontables
IEnumerable<TableSchema>options
GetSchemaOptions
Returns
GetPrimaryKeys(DataConnection, IEnumerable<TableSchema>, GetSchemaOptions)
protected override IReadOnlyCollection<PrimaryKeyInfo> GetPrimaryKeys(DataConnection dataConnection, IEnumerable<TableSchema> tables, GetSchemaOptions options)
Parameters
dataConnection
DataConnectiontables
IEnumerable<TableSchema>options
GetSchemaOptions
Returns
GetProcedureParameters(DataConnection, IEnumerable<ProcedureInfo>, GetSchemaOptions)
protected override List<ProcedureParameterInfo> GetProcedureParameters(DataConnection dataConnection, IEnumerable<ProcedureInfo> procedures, GetSchemaOptions options)
Parameters
dataConnection
DataConnectionprocedures
IEnumerable<ProcedureInfo>options
GetSchemaOptions
Returns
GetProcedureResultColumns(DataTable, GetSchemaOptions)
protected override List<ColumnSchema> GetProcedureResultColumns(DataTable resultTable, GetSchemaOptions options)
Parameters
resultTable
DataTableoptions
GetSchemaOptions
Returns
GetProcedures(DataConnection, GetSchemaOptions)
protected override List<ProcedureInfo>? GetProcedures(DataConnection dataConnection, GetSchemaOptions options)
Parameters
dataConnection
DataConnectionoptions
GetSchemaOptions
Returns
GetProviderSpecificType(string?)
protected override string? GetProviderSpecificType(string? dataType)
Parameters
dataType
string
Returns
GetProviderSpecificTypeNamespace()
protected override string GetProviderSpecificTypeNamespace()
Returns
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
stringcolumnType
stringdataTypeInfo
DataTypeInfolength
int?precision
int?scale
int?options
GetSchemaOptions
Returns
GetTables(DataConnection, GetSchemaOptions)
protected override List<TableInfo> GetTables(DataConnection dataConnection, GetSchemaOptions options)
Parameters
dataConnection
DataConnectionoptions
GetSchemaOptions