-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add IsMeasurement option to Column attribute for dynamic measur…
…ement names in POCO classes (#240)
- Loading branch information
Chris Cameron
committed
Sep 29, 2021
1 parent
533c46f
commit 3af91d5
Showing
16 changed files
with
167 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RunSettings> | ||
<EnvironmentVariables> | ||
<!-- InfluxDB 1.8+ --> | ||
<INFLUXDB_IP>localhost</INFLUXDB_IP> | ||
<INFLUXDB_PORT_API>8086</INFLUXDB_PORT_API> | ||
<!-- InfluxDB 2 --> | ||
<INFLUXDB_2_IP>localhost</INFLUXDB_2_IP> | ||
<INFLUXDB_2_PORT>9999</INFLUXDB_2_PORT> | ||
</EnvironmentVariables> | ||
</RunSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RunSettings> | ||
<EnvironmentVariables> | ||
<!-- InfluxDB 1.8+ --> | ||
<INFLUXDB_IP>localhost</INFLUXDB_IP> | ||
<INFLUXDB_PORT_API>8086</INFLUXDB_PORT_API> | ||
<!-- InfluxDB 2 --> | ||
<INFLUXDB_2_IP>localhost</INFLUXDB_2_IP> | ||
<INFLUXDB_2_PORT>9999</INFLUXDB_2_PORT> | ||
</EnvironmentVariables> | ||
</RunSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RunSettings> | ||
<EnvironmentVariables> | ||
<!-- InfluxDB 1.8+ --> | ||
<INFLUXDB_IP>localhost</INFLUXDB_IP> | ||
<INFLUXDB_PORT_API>8086</INFLUXDB_PORT_API> | ||
<!-- InfluxDB 2 --> | ||
<INFLUXDB_2_IP>localhost</INFLUXDB_2_IP> | ||
<INFLUXDB_2_PORT>9999</INFLUXDB_2_PORT> | ||
</EnvironmentVariables> | ||
</RunSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Reflection; | ||
using System.Text; | ||
|
||
namespace InfluxDB.Client.Linq.Internal.Expressions | ||
{ | ||
internal class MeasurementColumnName : IExpressionPart | ||
{ | ||
private readonly ColumnName _delegate; | ||
|
||
internal MeasurementColumnName(MemberInfo member, IMemberNameResolver memberNameResolver) | ||
{ | ||
_delegate = new ColumnName(member, memberNameResolver); | ||
} | ||
|
||
public void AppendFlux(StringBuilder builder) | ||
{ | ||
builder.Append("r[\""); | ||
_delegate.AppendFlux(builder); | ||
builder.Append("\"]"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RunSettings> | ||
<EnvironmentVariables> | ||
<!-- InfluxDB 1.8+ --> | ||
<INFLUXDB_IP>localhost</INFLUXDB_IP> | ||
<INFLUXDB_PORT_API>8086</INFLUXDB_PORT_API> | ||
<!-- InfluxDB 2 --> | ||
<INFLUXDB_2_IP>localhost</INFLUXDB_2_IP> | ||
<INFLUXDB_2_PORT>9999</INFLUXDB_2_PORT> | ||
</EnvironmentVariables> | ||
</RunSettings> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters