Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
e6c5d69
First basic impl for runtime of cosmosDB. Insert and select all items…
sjuarezgx Oct 30, 2022
db70320
remove debugger line
sjuarezgx Oct 30, 2022
e23d5c3
Merge branch 'master' into cosmosdbImpl
sjuarezgx Nov 20, 2022
44aebce
select by filters
sjuarezgx Nov 24, 2022
6519269
Update and delete implemented.
sjuarezgx Dec 4, 2022
5944014
fix some type of sql queries
sjuarezgx Dec 9, 2022
d9c353b
Support tables with partition key different than the id
sjuarezgx Dec 15, 2022
0a90ac8
Add null reference checks and follow fortify rules.
claudiamurialdo Dec 16, 2022
cc5bf4a
Support order
sjuarezgx Dec 17, 2022
b5c836c
Merge branch 'cosmosdbImpl' of https://github.com/genexuslabs/DotNetC…
sjuarezgx Dec 17, 2022
8c4f4d0
remove line
sjuarezgx Dec 17, 2022
622a3e0
remove comments
sjuarezgx Dec 17, 2022
7842fd8
fix replacement of qualified atts in query
sjuarezgx Dec 18, 2022
bba9e67
add empty method used by automatic prompts
sjuarezgx Dec 19, 2022
fd809ed
Use more performant method when querying by PK
sjuarezgx Dec 22, 2022
3adce90
Fixes for case when querying by PK.
sjuarezgx Dec 29, 2022
e1afa4a
remove comment, to force commit
sjuarezgx Dec 29, 2022
22685fb
Use invariantculture for decimals
sjuarezgx Dec 30, 2022
9153fc3
Merge branch 'master' into cosmosdbImpl
sjuarezgx Jan 2, 2023
fd6a73f
Merge branch 'master' into cosmosdbImpl
sjuarezgx Jan 2, 2023
7f0700b
Merge branch 'cosmosdbImpl' of https://github.com/genexuslabs/DotNetC…
sjuarezgx Jan 2, 2023
b76d287
fix sln
sjuarezgx Jan 2, 2023
9afa0f2
Move project, only support NET 6.
sjuarezgx Jan 3, 2023
86a57c1
support bool partitionKey
sjuarezgx Jan 4, 2023
7c7bdd2
fix error with params
sjuarezgx Jan 4, 2023
77a0c59
Support inserting null value
sjuarezgx Jan 6, 2023
b6c2de9
remove comments from code
sjuarezgx Jan 6, 2023
76cb3fa
remove comments
sjuarezgx Jan 8, 2023
bdd21bd
fix connectionstring options
sjuarezgx Jan 10, 2023
5f40000
support like using wildcard characters
sjuarezgx Jan 10, 2023
e5692fa
Merge branch 'master' into cosmosdbImpl
sjuarezgx Feb 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dotnet/DotNetStandardClasses.sln
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeneXus.OpenTelemetry.AWS.A
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GeneXus.OpenTelemetry", "src\dotnetcore\Providers\OpenTelemetry\OpenTelemetry\GeneXus.OpenTelemetry.csproj", "{00B1FA38-7D0B-47E4-860C-23490249A4D6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DynService.CosmosDB", "src\dotnetcore\DynService\Cosmos\DynService.CosmosDB.csproj", "{52DC6C43-58ED-4310-996B-06E95105F848}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -542,6 +544,10 @@ Global
{00B1FA38-7D0B-47E4-860C-23490249A4D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00B1FA38-7D0B-47E4-860C-23490249A4D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00B1FA38-7D0B-47E4-860C-23490249A4D6}.Release|Any CPU.Build.0 = Release|Any CPU
{52DC6C43-58ED-4310-996B-06E95105F848}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{52DC6C43-58ED-4310-996B-06E95105F848}.Debug|Any CPU.Build.0 = Debug|Any CPU
{52DC6C43-58ED-4310-996B-06E95105F848}.Release|Any CPU.ActiveCfg = Release|Any CPU
{52DC6C43-58ED-4310-996B-06E95105F848}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -650,6 +656,7 @@ Global
{27D54041-BDD5-428E-8CA6-C96D519F5451} = {BBE020D4-C0FF-41A9-9EB1-D1EE12CC4BB8}
{B5A9DEA7-67EC-49E4-924E-4729C34286EC} = {BBE020D4-C0FF-41A9-9EB1-D1EE12CC4BB8}
{00B1FA38-7D0B-47E4-860C-23490249A4D6} = {BBE020D4-C0FF-41A9-9EB1-D1EE12CC4BB8}
{52DC6C43-58ED-4310-996B-06E95105F848} = {79C9ECC6-2935-4C43-BF32-94698547F584}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E18684C9-7D76-45CD-BF24-E3944B7F174C}
Expand Down
13 changes: 13 additions & 0 deletions dotnet/src/dotnetcommon/DynService.Core/DynServiceCommon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,19 @@ public Query AddConst(GXType gxType, object parm)
mVarValues.Add(new VarValue($":const{ mVarValues.Count + 1 }", gxType, parm));
return this;
}

public virtual Query SetKey(string key)
{
return null;
}
public virtual Query KeyFilter(string[] filters)
{
return null;
}
public virtual Query OrderBy(string index)
{
return null;
}
}

public class VarValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ private void Initialize()
{
InitializeDBConnection();
State = ConnectionState.Executing;

mDynamoDB = new AmazonDynamoDBClient(mCredentials, mConfig);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,6 @@ public object empty(GXType gxtype)
}
}
}

public static class DynamoFluentExtensions
{
public static Query OrderBy(this Query dynamoQuery, string index)
{
return (dynamoQuery as DynamoQuery)?.OrderBy(index);
}
public static Query SetKey(this Query dynamoQuery, string partitionKey)
{
return (dynamoQuery as DynamoQuery)?.SetKey(partitionKey);
}
public static Query KeyFilter(this Query dynamoQuery, string[] filters)
{
return (dynamoQuery as DynamoQuery)?.KeyFilter(filters);
}
}

public class DynamoQuery : Query
{
Expand All @@ -79,7 +63,7 @@ public class DynamoQuery : Query
private const string RANGE_KEY_INDEX = "RangeKey";
private static readonly char[] indexTrimChars = new char[] { '(', ')' };

public DynamoQuery OrderBy(string index)
public override Query OrderBy(string index)
{
if(index.StartsWith("(", StringComparison.InvariantCulture))
{
Expand All @@ -92,18 +76,17 @@ public DynamoQuery OrderBy(string index)
}

public string PartitionKey { get; private set; }
public DynamoQuery SetKey(string partitionKey)
public override Query SetKey(string partitionKey)
{
PartitionKey = partitionKey;
return this;
}
internal IEnumerable<string> KeyFilters { get; set; } = Array.Empty<string>();
public DynamoQuery KeyFilter(string[] filters)
public override Query KeyFilter(string[] filters)
{
KeyFilters = filters;
return this;
}

public DynamoQuery(DynamoDBDataStoreHelper dataStoreHelper) : base(dataStoreHelper) { }
}
}
Loading