Skip to content

Commit

Permalink
Handyman.Azure.Cosmos.Table v3 preview 1
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSamuelsson committed Jan 30, 2024
1 parent b7e9c43 commit b07f062
Show file tree
Hide file tree
Showing 31 changed files with 328 additions and 518 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/Handyman.Azure.Cosmos.Table.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Handyman.Azure.Cosmos.Table

on:
push:
paths:
- src/Handyman.Azure.Cosmos.Table/src/**
- src/Handyman.Azure.Cosmos.Table/tests/**
pull_request:
paths:
- src/Handyman.Azure.Cosmos.Table/src/**
- src/Handyman.Azure.Cosmos.Table/tests/**
workflow_dispatch:
inputs:
publish:
description: Publish to nuget
required: false
type: boolean
default: false

jobs:
build-test-publish:
uses: JonasSamuelsson/Handyman/.github/workflows/build-test-publish-v1.yml@master
with:
mainProjectPath: src/Handyman.Azure.Cosmos.Table/src/Handyman.Azure.Cosmos.Table.csproj
testProjectPath: src/Handyman.Azure.Cosmos.Table/tests/Handyman.Azure.Cosmos.Table.Tests.csproj
publish: ${{ github.event.inputs.publish }}
secrets:
nuget: ${{ secrets.NUGET }}
13 changes: 0 additions & 13 deletions src/Handyman.Azure.Cosmos.Table/src/CloudTableClientExtensions.cs

This file was deleted.

138 changes: 0 additions & 138 deletions src/Handyman.Azure.Cosmos.Table/src/CloudTableExtensions.cs

This file was deleted.

118 changes: 0 additions & 118 deletions src/Handyman.Azure.Cosmos.Table/src/CloudTableFactory.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Version>2.0.0</Version>
<Version>3.0.0-preview.1</Version>
<Authors>Jonas Samuelsson</Authors>
<PackageLicense>https://github.com/JonasSamuelsson/Handyman/blob/master/LICENSE</PackageLicense>
<PackageProjectUrl>https://github.com/JonasSamuelsson/Handyman</PackageProjectUrl>
Expand All @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Cosmos.Table" Version="1.0.6" />
<PackageReference Include="Azure.Data.Tables" Version="12.8.2" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Azure.Cosmos.Table;
using Azure.Data.Tables;
using System;
using System.Linq.Expressions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Azure.Cosmos.Table;
using Azure.Data.Tables;
using System;
using System.Linq.Expressions;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace Handyman.Azure.Cosmos.Table.Internals;

internal class AndTableQueryFilterNode : CompositionTableQueryFilterNode
{
public AndTableQueryFilterNode() : base(TableOperators.And)
{
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.Azure.Cosmos.Table;
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;

Expand Down Expand Up @@ -32,24 +31,10 @@ public string Build()
{
var node = _nodes[i];
var filter = node.Build();
result = TableQuery.CombineFilters(result, _operator, filter);
result = FilterConditionGenerator.CombineFilters(result, _operator, filter);
}

return result;
}
}

internal class AndTableQueryFilterNode : CompositionTableQueryFilterNode
{
public AndTableQueryFilterNode() : base(TableOperators.And)
{
}
}

internal class OrTableQueryFilterNode : CompositionTableQueryFilterNode
{
public OrTableQueryFilterNode() : base(TableOperators.Or)
{
}
}
}
Loading

0 comments on commit b07f062

Please sign in to comment.