| | | 1 | | /* |
| | | 2 | | * Copyright 2017 Stanislav Muhametsin. All rights Reserved. |
| | | 3 | | * |
| | | 4 | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | 5 | | * you may not use this file except in compliance with the License. |
| | | 6 | | * You may obtain a copy of the License at |
| | | 7 | | * |
| | | 8 | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | 9 | | * |
| | | 10 | | * Unless required by applicable law or agreed to in writing, software |
| | | 11 | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | 12 | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| | | 13 | | * implied. |
| | | 14 | | * |
| | | 15 | | * See the License for the specific language governing permissions and |
| | | 16 | | * limitations under the License. |
| | | 17 | | */ |
| | | 18 | | using System; |
| | | 19 | | using System.Collections.Generic; |
| | | 20 | | using System.Text; |
| | | 21 | | using System.Threading.Tasks; |
| | | 22 | | using CBAM.SQL.Implementation; |
| | | 23 | | using UtilPack.TabularData; |
| | | 24 | | |
| | | 25 | | namespace CBAM.SQL.PostgreSQL.Implementation |
| | | 26 | | { |
| | | 27 | | internal sealed class PgSQLDatabaseMetaData : SQLCachingDatabaseMetadataImpl |
| | | 28 | | { |
| | 1 | 29 | | private static readonly DatabaseMetadataSQLCache SQLCache = new DefaultDatabaseMetadataSQLCache( |
| | 1 | 30 | | SchemaSearchSQLFactory, |
| | 1 | 31 | | TableSearchSQLFactory, |
| | 1 | 32 | | TableSearchForMultipleTableTypesSQLFactory, |
| | 1 | 33 | | ColumnSearchSQLFactory, |
| | 1 | 34 | | PrimaryKeySearchSQLFactory, |
| | 1 | 35 | | ForeignKeySearchSQLFactory |
| | 1 | 36 | | ); |
| | | 37 | | |
| | | 38 | | public PgSQLDatabaseMetaData( |
| | | 39 | | PostgreSQLProtocol connectionFunctionality |
| | 24 | 40 | | ) : base( |
| | 24 | 41 | | connectionFunctionality.VendorFunctionality, |
| | 24 | 42 | | connectionFunctionality.ServerParameters[PostgreSQLProtocol.SERVER_PARAMETER_DATABASE], |
| | 24 | 43 | | SQLCache |
| | 24 | 44 | | ) |
| | | 45 | | { |
| | 24 | 46 | | } |
| | | 47 | | |
| | | 48 | | protected override ValueTask<SchemaMetadata> DoExtractSchemaMetadataAsync( AsyncDataRow row ) |
| | | 49 | | { |
| | 0 | 50 | | throw new NotImplementedException(); |
| | | 51 | | } |
| | | 52 | | |
| | | 53 | | protected override ValueTask<TableMetadata> DoExtractTableMetadataAsync( AsyncDataRow row ) |
| | | 54 | | { |
| | 0 | 55 | | throw new NotImplementedException(); |
| | | 56 | | } |
| | | 57 | | |
| | | 58 | | protected override ValueTask<ColumnMetadata> DoExtractColumnMetadataAsync( AsyncDataRow row ) |
| | | 59 | | { |
| | 0 | 60 | | throw new NotImplementedException(); |
| | | 61 | | } |
| | | 62 | | |
| | | 63 | | protected override ValueTask<PrimaryKeyMetadata> DoExtractPrimaryKeyMetadataAsync( AsyncDataRow row ) |
| | | 64 | | { |
| | 0 | 65 | | throw new NotImplementedException(); |
| | | 66 | | } |
| | | 67 | | |
| | | 68 | | protected override ValueTask<ForeignKeyMetadata> DoExtractForeignKeyMetadataAsync( AsyncDataRow row ) |
| | | 69 | | { |
| | 0 | 70 | | throw new NotImplementedException(); |
| | | 71 | | } |
| | | 72 | | |
| | | 73 | | protected override (Object, Type) GetParameterInfoForTableType( TableType tableType ) |
| | | 74 | | { |
| | 0 | 75 | | throw new NotImplementedException(); |
| | | 76 | | } |
| | | 77 | | |
| | | 78 | | private static String SchemaSearchSQLFactory( Int32 permutationOrderNumber ) |
| | | 79 | | { |
| | 0 | 80 | | throw new NotImplementedException(); |
| | | 81 | | } |
| | | 82 | | |
| | | 83 | | private static String TableSearchSQLFactory( Int32 permutationOrderNumber, TableType? tableType ) |
| | | 84 | | { |
| | 0 | 85 | | throw new NotImplementedException(); |
| | | 86 | | } |
| | | 87 | | |
| | | 88 | | private static (String, Boolean) TableSearchForMultipleTableTypesSQLFactory( Int32 permutationOrderNumber, TableTy |
| | | 89 | | { |
| | 0 | 90 | | throw new NotImplementedException(); |
| | | 91 | | } |
| | | 92 | | |
| | | 93 | | private static String ColumnSearchSQLFactory( Int32 permutationOrderNumber ) |
| | | 94 | | { |
| | 0 | 95 | | throw new NotImplementedException(); |
| | | 96 | | } |
| | | 97 | | |
| | | 98 | | private static String PrimaryKeySearchSQLFactory( Int32 permutationOrderNumber ) |
| | | 99 | | { |
| | 0 | 100 | | throw new NotImplementedException(); |
| | | 101 | | } |
| | | 102 | | |
| | | 103 | | private static String ForeignKeySearchSQLFactory( Int32 permutationOrderNumber ) |
| | | 104 | | { |
| | 0 | 105 | | throw new NotImplementedException(); |
| | | 106 | | } |
| | | 107 | | |
| | | 108 | | |
| | | 109 | | } |
| | | 110 | | } |