Summary

Class:CBAM.SQL.PostgreSQL.Implementation.PgSQLDatabaseMetaData
Assembly:CBAM.SQL.PostgreSQL.Implementation
File(s):/repo-dir/contents/Source/Code/CBAM.SQL.PostgreSQL.Implementation/Meta.cs
Covered lines:14
Uncovered lines:12
Coverable lines:26
Total lines:110
Line coverage:53.8%

Coverage History

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.cctor()101%0%
.ctor(...)101%0%
DoExtractSchemaMetadataAsync(...)100%0%
DoExtractTableMetadataAsync(...)100%0%
DoExtractColumnMetadataAsync(...)100%0%
DoExtractPrimaryKeyMetadataAsync(...)100%0%
DoExtractForeignKeyMetadataAsync(...)100%0%
GetParameterInfoForTableType(...)100%0%
SchemaSearchSQLFactory(...)100%0%
TableSearchSQLFactory(...)100%0%
TableSearchForMultipleTableTypesSQLFactory(...)100%0%
ColumnSearchSQLFactory(...)100%0%
PrimaryKeySearchSQLFactory(...)100%0%
ForeignKeySearchSQLFactory(...)100%0%

File(s)

/repo-dir/contents/Source/Code/CBAM.SQL.PostgreSQL.Implementation/Meta.cs

#LineLine coverage
 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 */
 18using System;
 19using System.Collections.Generic;
 20using System.Text;
 21using System.Threading.Tasks;
 22using CBAM.SQL.Implementation;
 23using UtilPack.TabularData;
 24
 25namespace CBAM.SQL.PostgreSQL.Implementation
 26{
 27   internal sealed class PgSQLDatabaseMetaData : SQLCachingDatabaseMetadataImpl
 28   {
 129      private static readonly DatabaseMetadataSQLCache SQLCache = new DefaultDatabaseMetadataSQLCache(
 130         SchemaSearchSQLFactory,
 131         TableSearchSQLFactory,
 132         TableSearchForMultipleTableTypesSQLFactory,
 133         ColumnSearchSQLFactory,
 134         PrimaryKeySearchSQLFactory,
 135         ForeignKeySearchSQLFactory
 136         );
 37
 38      public PgSQLDatabaseMetaData(
 39         PostgreSQLProtocol connectionFunctionality
 2440         ) : base(
 2441            connectionFunctionality.VendorFunctionality,
 2442            connectionFunctionality.ServerParameters[PostgreSQLProtocol.SERVER_PARAMETER_DATABASE],
 2443            SQLCache
 2444            )
 45      {
 2446      }
 47
 48      protected override ValueTask<SchemaMetadata> DoExtractSchemaMetadataAsync( AsyncDataRow row )
 49      {
 050         throw new NotImplementedException();
 51      }
 52
 53      protected override ValueTask<TableMetadata> DoExtractTableMetadataAsync( AsyncDataRow row )
 54      {
 055         throw new NotImplementedException();
 56      }
 57
 58      protected override ValueTask<ColumnMetadata> DoExtractColumnMetadataAsync( AsyncDataRow row )
 59      {
 060         throw new NotImplementedException();
 61      }
 62
 63      protected override ValueTask<PrimaryKeyMetadata> DoExtractPrimaryKeyMetadataAsync( AsyncDataRow row )
 64      {
 065         throw new NotImplementedException();
 66      }
 67
 68      protected override ValueTask<ForeignKeyMetadata> DoExtractForeignKeyMetadataAsync( AsyncDataRow row )
 69      {
 070         throw new NotImplementedException();
 71      }
 72
 73      protected override (Object, Type) GetParameterInfoForTableType( TableType tableType )
 74      {
 075         throw new NotImplementedException();
 76      }
 77
 78      private static String SchemaSearchSQLFactory( Int32 permutationOrderNumber )
 79      {
 080         throw new NotImplementedException();
 81      }
 82
 83      private static String TableSearchSQLFactory( Int32 permutationOrderNumber, TableType? tableType )
 84      {
 085         throw new NotImplementedException();
 86      }
 87
 88      private static (String, Boolean) TableSearchForMultipleTableTypesSQLFactory( Int32 permutationOrderNumber, TableTy
 89      {
 090         throw new NotImplementedException();
 91      }
 92
 93      private static String ColumnSearchSQLFactory( Int32 permutationOrderNumber )
 94      {
 095         throw new NotImplementedException();
 96      }
 97
 98      private static String PrimaryKeySearchSQLFactory( Int32 permutationOrderNumber )
 99      {
 0100         throw new NotImplementedException();
 101      }
 102
 103      private static String ForeignKeySearchSQLFactory( Int32 permutationOrderNumber )
 104      {
 0105         throw new NotImplementedException();
 106      }
 107
 108
 109   }
 110}