public IntermediateClickHouseTypeInfo(ClickHouseDbType dbType, string clickHouseType, bool isNullable, int arrayRank)
 {
     DbType         = dbType;
     ClickHouseType = clickHouseType;
     IsNullable     = isNullable;
     ArrayRank      = arrayRank;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates, adds to the collection and returns a new parameter with specified name, value and type.
        /// </summary>
        /// <param name="parameterName">The name of the parameter.</param>
        /// <param name="value">The value of the paramter.</param>
        /// <param name="dbType">The type of the paramter</param>
        /// <returns>A new <see cref="ClickHouseParameter"/> added to the collection.</returns>
        public ClickHouseParameter AddWithValue(string parameterName, object?value, ClickHouseDbType dbType)
        {
            var parameter = new ClickHouseParameter(parameterName)
            {
                Value = value, ClickHouseDbType = dbType
            };

            Add(parameter);
            return(parameter);
        }