Summary

Class:CBAM.SQL.PostgreSQL.Implementation.PgSQLStatementBuilderInformation
Assembly:CBAM.SQL.PostgreSQL.Implementation
File(s):/repo-dir/contents/Source/Code/CBAM.SQL.PostgreSQL.Implementation/Statement.cs
Covered lines:4
Uncovered lines:0
Coverable lines:4
Total lines:81
Line coverage:100%

Coverage History

Metrics

MethodCyclomatic complexity NPath complexity Sequence coverage Branch coverage
.ctor(...)101%0%

File(s)

/repo-dir/contents/Source/Code/CBAM.SQL.PostgreSQL.Implementation/Statement.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 CBAM.SQL.Implementation;
 19using CBAM.SQL.PostgreSQL;
 20using System;
 21using System.Collections.Generic;
 22using System.Text;
 23
 24namespace CBAM.SQL.PostgreSQL.Implementation
 25{
 26   internal sealed class PgSQLStatementBuilder : StatementBuilderImpl<StatementParameter>
 27   {
 28
 29      public PgSQLStatementBuilder(
 30         PgSQLStatementBuilderInformation information,
 31         StatementParameter[] currentParameters,
 32         List<StatementParameter[]> batchParams
 33         )
 34         : base( information, currentParameters, batchParams )
 35      {
 36      }
 37
 38      protected override StatementParameter CreateStatementParameter( Int32 parameterIndex, Object value, Type clrType )
 39      {
 40         return new StatementParameterImpl(
 41            clrType,
 42            value
 43            );
 44      }
 45
 46      //protected override SQLException VerifyBatchParameters( StatementParameter previous, StatementParameter toBeAdded
 47      //{
 48      //   return null;
 49      //}
 50   }
 51
 52   internal sealed class PgSQLStatementBuilderInformation : StatementBuilderInformationImpl<StatementParameter, List<Sta
 53   {
 54      public PgSQLStatementBuilderInformation(
 55         String sql,
 56         StatementParameter[] currentParameters,
 57         List<StatementParameter[]> batchParams,
 58         Int32[] parameterIndices
 6059         ) : base( sql, currentParameters, batchParams )
 60      {
 6061         this.ParameterIndices = parameterIndices;
 6062      }
 63
 4764      internal Int32[] ParameterIndices { get; }
 65   }
 66
 67
 68   //internal sealed class PgSQLStatementParameterImpl : StatementParameterImpl, PgStatementParameter
 69   //{
 70   //   public PgSQLStatementParameterImpl(
 71   //      Type cilType,
 72   //      Object value,
 73   //      TypeRegistry typeRegistry
 74   //      ) : base( cilType, value )
 75   //   {
 76   //      this.DBTypeID = typeRegistry.GetTypeInfo( cilType ).BoundData.TypeID;
 77   //   }
 78
 79   //   public Int32 DBTypeID { get; }
 80   //}
 81}