Driver/SpannerDBDriver.cs
/// <summary>
/// Fills the several DBType convertion arrays with the right content, so the conversion methods can work quickly.
/// </summary>
Fills the several DBType convertion arrays with the right content, so the conversion methods can work quickly.
Fills the several DBType convertion arrays with the right content so the conversion methods can work quickly .
protected override void FillDbTypeConvertArrays()
		{
			this.DBTypesAsProviderType[(int)SpannerDbTypes.Bool] = "Bool";
			this.DBTypesAsProviderType[(int)SpannerDbTypes.Bytes] = "Bytes";
			this.DBTypesAsProviderType[(int)SpannerDbTypes.Date] = "Date";
			this.DBTypesAsProviderType[(int)SpannerDbTypes.Int64] = "Int64";
			this.DBTypesAsProviderType[(int)SpannerDbTypes.String] = "String";
			this.DBTypesAsProviderType[(int)SpannerDbTypes.Float64] = "Float64";
			this.DBTypesAsProviderType[(int)SpannerDbTypes.Timestamp] = "Timestamp";
			this.DBTypesAsNETType[(int)SpannerDbTypes.Bool] = typeof(bool);
			this.DBTypesAsNETType[(int)SpannerDbTypes.Date] = typeof(DateTime);
			this.DBTypesAsNETType[(int)SpannerDbTypes.Bytes] = typeof(Byte[]);
			this.DBTypesAsNETType[(int)SpannerDbTypes.Int64] = typeof(long);
			this.DBTypesAsNETType[(int)SpannerDbTypes.String] = typeof(string);
			this.DBTypesAsNETType[(int)SpannerDbTypes.Float64] = typeof(double);
			this.DBTypesAsNETType[(int)SpannerDbTypes.Timestamp] = typeof(DateTime);
			this.DBTypesAsString[(int)SpannerDbTypes.Bool] = "bool";
			this.DBTypesAsString[(int)SpannerDbTypes.Date] = "date";
			this.DBTypesAsString[(int)SpannerDbTypes.Bytes] = "bytes";
			this.DBTypesAsString[(int)SpannerDbTypes.Int64] = "int64";
			this.DBTypesAsString[(int)SpannerDbTypes.String] = "string";
			this.DBTypesAsString[(int)SpannerDbTypes.Float64] = "float64";
			this.DBTypesAsString[(int)SpannerDbTypes.Timestamp] = "timestamp";
		}
protected override void FillDbTypeConvertArrays ( ) { this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . Bool ] = " " ; this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . Bytes ] = " " ; this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . Date ] = " " ; this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . Int64 ] = " " ; this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . String ] = " " ; this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . Float64 ] = " " ; this . DBTypesAsProviderType [ ( int ) SpannerDbTypes . Timestamp ] = " " ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . Bool ] = typeof ( bool ) ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . Date ] = typeof ( DateTime ) ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . Bytes ] = typeof ( Byte [ ] ) ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . Int64 ] = typeof ( long ) ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . String ] = typeof ( string ) ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . Float64 ] = typeof ( double ) ; this . DBTypesAsNETType [ ( int ) SpannerDbTypes . Timestamp ] = typeof ( DateTime ) ; this . DBTypesAsString [ ( int ) SpannerDbTypes . Bool ] = " " ; this . DBTypesAsString [ ( int ) SpannerDbTypes . Date ] = " " ; this . DBTypesAsString [ ( int ) SpannerDbTypes . Bytes ] = " " ; this . DBTypesAsString [ ( int ) SpannerDbTypes . Int64 ] = " " ; this . DBTypesAsString [ ( int ) SpannerDbTypes . String ] = " " ; this . DBTypesAsString [ ( int ) SpannerDbTypes . Float64 ] = " " ; this . DBTypesAsString [ ( int ) SpannerDbTypes . Timestamp ] = " " ; }
Fills the several DBType convertion arrays with the right content, so the conversion methods can work quickly.
Fills the several DBType convertion arrays with the right content so the conversion methods can work quickly .