Skip to content

Commit 963d9cb

Browse files
fix linter
1 parent 727fef6 commit 963d9cb

File tree

6 files changed

+22
-29
lines changed

6 files changed

+22
-29
lines changed

src/Ydb.Sdk/src/Ado/Internal/YdbTypedValueBuildExtensions.cs renamed to src/Ydb.Sdk/src/Ado/Internal/YdbTypedValueExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace Ydb.Sdk.Ado.Internal;
55

6-
internal static class YdbTypedValueBuildExtensions
6+
internal static class YdbTypedValueExtensions
77
{
88
internal static TypedValue Null(this Type.Types.PrimitiveTypeId primitiveTypeId) => new()
99
{

src/Ydb.Sdk/src/Ado/Internal/YdbValueParserExtensions.cs renamed to src/Ydb.Sdk/src/Ado/Internal/YdbValueExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using Google.Protobuf.WellKnownTypes;
2-
31
namespace Ydb.Sdk.Ado.Internal;
42

5-
internal static class YdbValueParserExtensions
3+
internal static class YdbValueExtensions
64
{
75
private static readonly DateTime UnixEpoch = new(1970, 1, 1, 0, 0, 0, DateTimeKind.Unspecified);
86

src/Ydb.Sdk/src/Ado/YdbCommand.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Diagnostics.CodeAnalysis;
44
using System.Text;
55
using Ydb.Sdk.Ado.Internal;
6-
using Ydb.Sdk.Ado.YdbType;
76

87
namespace Ydb.Sdk.Ado;
98

src/Ydb.Sdk/src/Ado/YdbParameter.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Ydb.Sdk.Ado.Internal;
66
using Ydb.Sdk.Ado.YdbType;
77
using Ydb.Sdk.Value;
8-
using static Ydb.Sdk.Ado.Internal.YdbTypedValueBuildExtensions;
8+
using static Ydb.Sdk.Ado.Internal.YdbTypedValueExtensions;
99

1010
namespace Ydb.Sdk.Ado;
1111

@@ -175,61 +175,61 @@ internal TypedValue TypedValue
175175
private TypedValue MakeInt16(object value) => value switch
176176
{
177177
short shortValue => shortValue.Int16(),
178-
sbyte sbyteValue => YdbTypedValueBuildExtensions.Int16(sbyteValue),
179-
byte byteValue => YdbTypedValueBuildExtensions.Int16(byteValue),
178+
sbyte sbyteValue => YdbTypedValueExtensions.Int16(sbyteValue),
179+
byte byteValue => YdbTypedValueExtensions.Int16(byteValue),
180180
_ => throw ValueTypeNotSupportedException
181181
};
182182

183183
private TypedValue MakeInt32(object value) => value switch
184184
{
185185
int intValue => intValue.Int32(),
186-
sbyte sbyteValue => YdbTypedValueBuildExtensions.Int32(sbyteValue),
187-
byte byteValue => YdbTypedValueBuildExtensions.Int32(byteValue),
188-
short shortValue => YdbTypedValueBuildExtensions.Int32(shortValue),
189-
ushort ushortValue => YdbTypedValueBuildExtensions.Int32(ushortValue),
186+
sbyte sbyteValue => YdbTypedValueExtensions.Int32(sbyteValue),
187+
byte byteValue => YdbTypedValueExtensions.Int32(byteValue),
188+
short shortValue => YdbTypedValueExtensions.Int32(shortValue),
189+
ushort ushortValue => YdbTypedValueExtensions.Int32(ushortValue),
190190
_ => throw ValueTypeNotSupportedException
191191
};
192192

193193
private TypedValue MakeInt64(object value) => value switch
194194
{
195195
long longValue => longValue.Int64(),
196-
sbyte sbyteValue => YdbTypedValueBuildExtensions.Int64(sbyteValue),
197-
byte byteValue => YdbTypedValueBuildExtensions.Int64(byteValue),
198-
short shortValue => YdbTypedValueBuildExtensions.Int64(shortValue),
199-
ushort ushortValue => YdbTypedValueBuildExtensions.Int64(ushortValue),
200-
int intValue => YdbTypedValueBuildExtensions.Int64(intValue),
201-
uint uintValue => YdbTypedValueBuildExtensions.Int64(uintValue),
196+
sbyte sbyteValue => YdbTypedValueExtensions.Int64(sbyteValue),
197+
byte byteValue => YdbTypedValueExtensions.Int64(byteValue),
198+
short shortValue => YdbTypedValueExtensions.Int64(shortValue),
199+
ushort ushortValue => YdbTypedValueExtensions.Int64(ushortValue),
200+
int intValue => YdbTypedValueExtensions.Int64(intValue),
201+
uint uintValue => YdbTypedValueExtensions.Int64(uintValue),
202202
_ => throw ValueTypeNotSupportedException
203203
};
204204

205205
private TypedValue MakeUint16(object value) => value switch
206206
{
207207
ushort shortValue => shortValue.Uint16(),
208-
byte byteValue => YdbTypedValueBuildExtensions.Uint16(byteValue),
208+
byte byteValue => YdbTypedValueExtensions.Uint16(byteValue),
209209
_ => throw ValueTypeNotSupportedException
210210
};
211211

212212
private TypedValue MakeUint32(object value) => value switch
213213
{
214214
uint intValue => intValue.Uint32(),
215-
byte byteValue => YdbTypedValueBuildExtensions.Uint32(byteValue),
216-
ushort ushortValue => YdbTypedValueBuildExtensions.Uint32(ushortValue),
215+
byte byteValue => YdbTypedValueExtensions.Uint32(byteValue),
216+
ushort ushortValue => YdbTypedValueExtensions.Uint32(ushortValue),
217217
_ => throw ValueTypeNotSupportedException
218218
};
219219

220220
private TypedValue MakeUint64(object value) => value switch
221221
{
222222
ulong longValue => longValue.Uint64(),
223-
byte byteValue => YdbTypedValueBuildExtensions.Uint64(byteValue),
224-
ushort ushortValue => YdbTypedValueBuildExtensions.Uint64(ushortValue),
225-
uint uintValue => YdbTypedValueBuildExtensions.Uint64(uintValue),
223+
byte byteValue => YdbTypedValueExtensions.Uint64(byteValue),
224+
ushort ushortValue => YdbTypedValueExtensions.Uint64(ushortValue),
225+
uint uintValue => YdbTypedValueExtensions.Uint64(uintValue),
226226
_ => throw ValueTypeNotSupportedException
227227
};
228228

229229
private TypedValue MakeDouble(object value) => value switch
230230
{
231231
double doubleValue => doubleValue.Double(),
232-
float floatValue => YdbTypedValueBuildExtensions.Double(floatValue),
232+
float floatValue => YdbTypedValueExtensions.Double(floatValue),
233233
_ => throw ValueTypeNotSupportedException
234234
};
235235

src/Ydb.Sdk/src/Value/ResultSet.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System.Collections;
22
using Google.Protobuf.Collections;
3-
using Ydb.Sdk.Ado;
4-
using Ydb.Sdk.Ado.Internal;
53

64
namespace Ydb.Sdk.Value;
75

src/Ydb.Sdk/src/Value/YdbValueParser.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using Google.Protobuf.WellKnownTypes;
2-
using Ydb.Sdk.Ado;
3-
using Ydb.Sdk.Ado.Internal;
42

53
namespace Ydb.Sdk.Value;
64

0 commit comments

Comments
 (0)