Skip to content

Commit f647be1

Browse files
committed
Renamed the Property Handlers of EnterpriseDB, MariaDB, MariaDbConnector and CockroachDB to have its own prefix.
1 parent 40bfc57 commit f647be1

18 files changed

Lines changed: 100 additions & 100 deletions

File tree

‎src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb.IntegrationTests/Models/CockroachDbTsQueryEntity.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
namespace RepoDb.CockroachDb.IntegrationTests.Models
1515
{
1616
/// <summary>
17-
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="TsQueryToStringPropertyHandler"/>.
17+
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="CockroachDbTsQueryToStringPropertyHandler"/>.
1818
/// </summary>
1919
[Map("PropertyHandler")]
2020
public class CockroachDbTsQueryEntity
2121
{
2222
public System.Int64 Id { get; set; }
2323

24-
[PropertyHandler(typeof(TsQueryToStringPropertyHandler))]
24+
[PropertyHandler(typeof(CockroachDbTsQueryToStringPropertyHandler))]
2525
[CockroachDbType(CockroachDbType.TsQuery)]
2626
public System.String ColumnTsQuery { get; set; }
2727
}

‎src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb.IntegrationTests/Models/CockroachDbTsVectorEntity.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
namespace RepoDb.CockroachDb.IntegrationTests.Models
1515
{
1616
/// <summary>
17-
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="TsVectorToStringPropertyHandler"/>.
17+
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="CockroachDbTsVectorToStringPropertyHandler"/>.
1818
/// </summary>
1919
[Map("PropertyHandler")]
2020
public class CockroachDbTsVectorEntity
2121
{
2222
public System.Int64 Id { get; set; }
2323

24-
[PropertyHandler(typeof(TsVectorToStringPropertyHandler))]
24+
[PropertyHandler(typeof(CockroachDbTsVectorToStringPropertyHandler))]
2525
[CockroachDbType(CockroachDbType.TsVector)]
2626
public System.String ColumnTsVector { get; set; }
2727
}

src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb.IntegrationTests/PropertyHandlers/TestTsQueryToStringPropertyHandler.cs renamed to src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb.IntegrationTests/PropertyHandlers/TestCockroachDbTsQueryToStringPropertyHandler.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace RepoDb.CockroachDb.IntegrationTests.PropertyHandlers
1919
{
2020
[TestClass]
21-
public class TestTsQueryToStringPropertyHandler
21+
public class TestCockroachDbTsQueryToStringPropertyHandler
2222
{
2323
[TestInitialize]
2424
public void Initialize()
@@ -34,12 +34,12 @@ public void Cleanup()
3434
}
3535

3636
[TestMethod]
37-
public void TestTsQueryToStringPropertyHandlerSet()
37+
public void TestCockroachDbTsQueryToStringPropertyHandlerSet()
3838
{
3939
using (var connection = new CockroachDbConnection(Database.ConnectionString))
4040
{
4141
// Setup
42-
var handler = new TsQueryToStringPropertyHandler();
42+
var handler = new CockroachDbTsQueryToStringPropertyHandler();
4343

4444
// Act
4545
var result = handler.Set("'fat' & 'rat'", null);
@@ -51,12 +51,12 @@ public void TestTsQueryToStringPropertyHandlerSet()
5151
}
5252

5353
[TestMethod]
54-
public void TestTsQueryToStringPropertyHandlerSetWithNull()
54+
public void TestCockroachDbTsQueryToStringPropertyHandlerSetWithNull()
5555
{
5656
using (var connection = new CockroachDbConnection(Database.ConnectionString))
5757
{
5858
// Setup
59-
var handler = new TsQueryToStringPropertyHandler();
59+
var handler = new CockroachDbTsQueryToStringPropertyHandler();
6060

6161
// Act
6262
var result = handler.Set(null, null);
@@ -67,12 +67,12 @@ public void TestTsQueryToStringPropertyHandlerSetWithNull()
6767
}
6868

6969
[TestMethod]
70-
public void TestTsQueryToStringPropertyHandlerGetWithSupportedTypes()
70+
public void TestCockroachDbTsQueryToStringPropertyHandlerGetWithSupportedTypes()
7171
{
7272
using (var connection = new CockroachDbConnection(Database.ConnectionString))
7373
{
7474
// Setup
75-
var handler = new TsQueryToStringPropertyHandler();
75+
var handler = new CockroachDbTsQueryToStringPropertyHandler();
7676
var value = NpgsqlTsQuery.Parse("'fat' & 'rat'");
7777

7878
// Act
@@ -86,12 +86,12 @@ public void TestTsQueryToStringPropertyHandlerGetWithSupportedTypes()
8686
}
8787

8888
[TestMethod]
89-
public void TestTsQueryToStringPropertyHandlerGetWithNullValues()
89+
public void TestCockroachDbTsQueryToStringPropertyHandlerGetWithNullValues()
9090
{
9191
using (var connection = new CockroachDbConnection(Database.ConnectionString))
9292
{
9393
// Setup
94-
var handler = new TsQueryToStringPropertyHandler();
94+
var handler = new CockroachDbTsQueryToStringPropertyHandler();
9595

9696
// Act
9797
var resultOfNull = handler.Get(null, null);
@@ -104,20 +104,20 @@ public void TestTsQueryToStringPropertyHandlerGetWithNullValues()
104104
}
105105

106106
[TestMethod]
107-
public void TestTsQueryToStringPropertyHandlerGetWithUnsupportedType()
107+
public void TestCockroachDbTsQueryToStringPropertyHandlerGetWithUnsupportedType()
108108
{
109109
using (var connection = new CockroachDbConnection(Database.ConnectionString))
110110
{
111111
// Setup
112-
var handler = new TsQueryToStringPropertyHandler();
112+
var handler = new CockroachDbTsQueryToStringPropertyHandler();
113113

114114
// Act & Assert
115115
Assert.ThrowsExactly<ArgumentException>(() => handler.Get(123, null));
116116
}
117117
}
118118

119119
[TestMethod]
120-
public void TestTsQueryToStringPropertyHandlerInsertAndQuery()
120+
public void TestCockroachDbTsQueryToStringPropertyHandlerInsertAndQuery()
121121
{
122122
using (var connection = new CockroachDbConnection(Database.ConnectionString))
123123
{
@@ -138,7 +138,7 @@ public void TestTsQueryToStringPropertyHandlerInsertAndQuery()
138138
}
139139

140140
[TestMethod]
141-
public void TestTsQueryToStringPropertyHandlerInsertAndQueryWithNull()
141+
public void TestCockroachDbTsQueryToStringPropertyHandlerInsertAndQueryWithNull()
142142
{
143143
using (var connection = new CockroachDbConnection(Database.ConnectionString))
144144
{
@@ -159,7 +159,7 @@ public void TestTsQueryToStringPropertyHandlerInsertAndQueryWithNull()
159159
}
160160

161161
[TestMethod]
162-
public void TestTsQueryToStringPropertyHandlerInsertAllAndQueryAll()
162+
public void TestCockroachDbTsQueryToStringPropertyHandlerInsertAllAndQueryAll()
163163
{
164164
using (var connection = new CockroachDbConnection(Database.ConnectionString))
165165
{

src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb.IntegrationTests/PropertyHandlers/TestTsVectorToStringPropertyHandler.cs renamed to src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb.IntegrationTests/PropertyHandlers/TestCockroachDbTsVectorToStringPropertyHandler.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace RepoDb.CockroachDb.IntegrationTests.PropertyHandlers
1919
{
2020
[TestClass]
21-
public class TestTsVectorToStringPropertyHandler
21+
public class TestCockroachDbTsVectorToStringPropertyHandler
2222
{
2323
[TestInitialize]
2424
public void Initialize()
@@ -34,12 +34,12 @@ public void Cleanup()
3434
}
3535

3636
[TestMethod]
37-
public void TestTsVectorToStringPropertyHandlerSet()
37+
public void TestCockroachDbTsVectorToStringPropertyHandlerSet()
3838
{
3939
using (var connection = new CockroachDbConnection(Database.ConnectionString))
4040
{
4141
// Setup
42-
var handler = new TsVectorToStringPropertyHandler();
42+
var handler = new CockroachDbTsVectorToStringPropertyHandler();
4343

4444
// Act
4545
var result = handler.Set("'cat':3 'fat':2 'rat':5", null);
@@ -51,12 +51,12 @@ public void TestTsVectorToStringPropertyHandlerSet()
5151
}
5252

5353
[TestMethod]
54-
public void TestTsVectorToStringPropertyHandlerSetWithNull()
54+
public void TestCockroachDbTsVectorToStringPropertyHandlerSetWithNull()
5555
{
5656
using (var connection = new CockroachDbConnection(Database.ConnectionString))
5757
{
5858
// Setup
59-
var handler = new TsVectorToStringPropertyHandler();
59+
var handler = new CockroachDbTsVectorToStringPropertyHandler();
6060

6161
// Act
6262
var result = handler.Set(null, null);
@@ -67,12 +67,12 @@ public void TestTsVectorToStringPropertyHandlerSetWithNull()
6767
}
6868

6969
[TestMethod]
70-
public void TestTsVectorToStringPropertyHandlerGetWithSupportedTypes()
70+
public void TestCockroachDbTsVectorToStringPropertyHandlerGetWithSupportedTypes()
7171
{
7272
using (var connection = new CockroachDbConnection(Database.ConnectionString))
7373
{
7474
// Setup
75-
var handler = new TsVectorToStringPropertyHandler();
75+
var handler = new CockroachDbTsVectorToStringPropertyHandler();
7676
var value = NpgsqlTsVector.Parse("'cat':3 'fat':2 'rat':5");
7777

7878
// Act
@@ -86,12 +86,12 @@ public void TestTsVectorToStringPropertyHandlerGetWithSupportedTypes()
8686
}
8787

8888
[TestMethod]
89-
public void TestTsVectorToStringPropertyHandlerGetWithNullValues()
89+
public void TestCockroachDbTsVectorToStringPropertyHandlerGetWithNullValues()
9090
{
9191
using (var connection = new CockroachDbConnection(Database.ConnectionString))
9292
{
9393
// Setup
94-
var handler = new TsVectorToStringPropertyHandler();
94+
var handler = new CockroachDbTsVectorToStringPropertyHandler();
9595

9696
// Act
9797
var resultOfNull = handler.Get(null, null);
@@ -104,20 +104,20 @@ public void TestTsVectorToStringPropertyHandlerGetWithNullValues()
104104
}
105105

106106
[TestMethod]
107-
public void TestTsVectorToStringPropertyHandlerGetWithUnsupportedType()
107+
public void TestCockroachDbTsVectorToStringPropertyHandlerGetWithUnsupportedType()
108108
{
109109
using (var connection = new CockroachDbConnection(Database.ConnectionString))
110110
{
111111
// Setup
112-
var handler = new TsVectorToStringPropertyHandler();
112+
var handler = new CockroachDbTsVectorToStringPropertyHandler();
113113

114114
// Act & Assert
115115
Assert.ThrowsExactly<ArgumentException>(() => handler.Get(123, null));
116116
}
117117
}
118118

119119
[TestMethod]
120-
public void TestTsVectorToStringPropertyHandlerInsertAndQuery()
120+
public void TestCockroachDbTsVectorToStringPropertyHandlerInsertAndQuery()
121121
{
122122
using (var connection = new CockroachDbConnection(Database.ConnectionString))
123123
{
@@ -138,7 +138,7 @@ public void TestTsVectorToStringPropertyHandlerInsertAndQuery()
138138
}
139139

140140
[TestMethod]
141-
public void TestTsVectorToStringPropertyHandlerInsertAndQueryWithNull()
141+
public void TestCockroachDbTsVectorToStringPropertyHandlerInsertAndQueryWithNull()
142142
{
143143
using (var connection = new CockroachDbConnection(Database.ConnectionString))
144144
{
@@ -159,7 +159,7 @@ public void TestTsVectorToStringPropertyHandlerInsertAndQueryWithNull()
159159
}
160160

161161
[TestMethod]
162-
public void TestTsVectorToStringPropertyHandlerInsertAllAndQueryAll()
162+
public void TestCockroachDbTsVectorToStringPropertyHandlerInsertAllAndQueryAll()
163163
{
164164
using (var connection = new CockroachDbConnection(Database.ConnectionString))
165165
{

src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb/PropertyHandlers/TsQueryToStringPropertyHandler.cs renamed to src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb/PropertyHandlers/CockroachDbTsQueryToStringPropertyHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace RepoDb.PropertyHandlers.CockroachDb
1616
/// <summary>
1717
/// A property handler that maps the full-text search <c>tsquery</c> type into a <see cref="string"/> property.
1818
/// </summary>
19-
public class TsQueryToStringPropertyHandler : IPropertyHandler<object, string>
19+
public class CockroachDbTsQueryToStringPropertyHandler : IPropertyHandler<object, string>
2020
{
2121
/// <summary>
2222
/// Converts the <c>tsquery</c> value, as returned by the driver, into its text form (for example <c>'fat' &amp; 'cat'</c>).

src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb/PropertyHandlers/TsVectorToStringPropertyHandler.cs renamed to src/Providers/RepoDb.CockroachDb/RepoDb.CockroachDb/PropertyHandlers/CockroachDbTsVectorToStringPropertyHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ namespace RepoDb.PropertyHandlers.CockroachDb
1616
/// <summary>
1717
/// A property handler that maps the full-text search <c>tsvector</c> type into a <see cref="string"/> property.
1818
/// </summary>
19-
public class TsVectorToStringPropertyHandler : IPropertyHandler<object, string>
19+
public class CockroachDbTsVectorToStringPropertyHandler : IPropertyHandler<object, string>
2020
{
2121
/// <summary>
2222
/// Converts the <c>tsvector</c> value, as returned by the driver, into its text form (for example <c>'cat':3 'fat':2</c>).

‎src/Providers/RepoDb.EnterpriseDb/RepoDb.EnterpriseDb.IntegrationTests/Models/EnterpriseDbTsQueryEntity.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
namespace RepoDb.EnterpriseDb.IntegrationTests.Models
1515
{
1616
/// <summary>
17-
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="TsQueryToStringPropertyHandler"/>.
17+
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="EnterpriseDbTsQueryToStringPropertyHandler"/>.
1818
/// </summary>
1919
[Map("PropertyHandler")]
2020
public class EnterpriseDbTsQueryEntity
2121
{
2222
public System.Int64 Id { get; set; }
2323

24-
[PropertyHandler(typeof(TsQueryToStringPropertyHandler))]
24+
[PropertyHandler(typeof(EnterpriseDbTsQueryToStringPropertyHandler))]
2525
[EnterpriseDbType(EDBType.TsQuery)]
2626
public System.String ColumnTsQuery { get; set; }
2727
}

‎src/Providers/RepoDb.EnterpriseDb/RepoDb.EnterpriseDb.IntegrationTests/Models/EnterpriseDbTsVectorEntity.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
namespace RepoDb.EnterpriseDb.IntegrationTests.Models
1515
{
1616
/// <summary>
17-
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="TsVectorToStringPropertyHandler"/>.
17+
/// A minimal model that maps to the "PropertyHandler" table, used to test <see cref="EnterpriseDbTsVectorToStringPropertyHandler"/>.
1818
/// </summary>
1919
[Map("PropertyHandler")]
2020
public class EnterpriseDbTsVectorEntity
2121
{
2222
public System.Int64 Id { get; set; }
2323

24-
[PropertyHandler(typeof(TsVectorToStringPropertyHandler))]
24+
[PropertyHandler(typeof(EnterpriseDbTsVectorToStringPropertyHandler))]
2525
[EnterpriseDbType(EDBType.TsVector)]
2626
public System.String ColumnTsVector { get; set; }
2727
}

0 commit comments

Comments
 (0)