|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Collections.Specialized; |
| 4 | +using System.Runtime.CompilerServices; |
| 5 | +using System.Threading; |
| 6 | +using System.Threading.Tasks; |
| 7 | +using ExpressionTree; |
| 8 | +using LiteGraph; |
| 9 | +using LiteGraph.GraphRepositories.Interfaces; |
| 10 | + |
| 11 | +namespace WebNet.LiteGraphExtensions.GraphRepositories.Implementations.LiteDB{ |
| 12 | + /// <summary> |
| 13 | + /// Edge methods for LiteDB. |
| 14 | + /// </summary> |
| 15 | + public class EdgeMethods : IEdgeMethods |
| 16 | + { |
| 17 | + private readonly LiteDBGraphRepository _repo; |
| 18 | + |
| 19 | + public EdgeMethods(LiteDBGraphRepository repo) |
| 20 | + { |
| 21 | + _repo = repo ?? throw new ArgumentNullException(nameof(repo)); |
| 22 | + } |
| 23 | + |
| 24 | + public Task<Edge> Create(Edge edge, CancellationToken token = default) |
| 25 | + { |
| 26 | + throw new NotImplementedException("EdgeMethods.Create not yet implemented for LiteDB"); |
| 27 | + } |
| 28 | + |
| 29 | + public Task<List<Edge>> CreateMany(Guid tenantGuid, Guid graphGuid, List<Edge> edges, CancellationToken token = default) |
| 30 | + { |
| 31 | + throw new NotImplementedException("EdgeMethods.CreateMany not yet implemented for LiteDB"); |
| 32 | + } |
| 33 | + |
| 34 | + public IAsyncEnumerable<Edge> ReadAllInTenant(Guid tenantGuid, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, CancellationToken token = default) |
| 35 | + { |
| 36 | + throw new NotImplementedException("EdgeMethods.ReadAllInTenant not yet implemented for LiteDB"); |
| 37 | + } |
| 38 | + |
| 39 | + public IAsyncEnumerable<Edge> ReadAllInGraph(Guid tenantGuid, Guid graphGuid, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, CancellationToken token = default) |
| 40 | + { |
| 41 | + throw new NotImplementedException("EdgeMethods.ReadAllInGraph not yet implemented for LiteDB"); |
| 42 | + } |
| 43 | + |
| 44 | + public async IAsyncEnumerable<Edge> ReadMany(Guid tenantGuid, Guid graphGuid, string? name = null, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 45 | + { yield break; throw new NotImplementedException("EdgeMethods.ReadMany not yet implemented for LiteDB"); |
| 46 | + } |
| 47 | + |
| 48 | + public Task<Edge> ReadFirst(Guid tenantGuid, Guid graphGuid, string? name = null, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, CancellationToken token = default) |
| 49 | + { |
| 50 | + throw new NotImplementedException("EdgeMethods.ReadFirst not yet implemented for LiteDB"); |
| 51 | + } |
| 52 | + |
| 53 | + public Task<Edge> ReadByGuid(Guid tenantGuid, Guid edgeGuid, CancellationToken token = default) |
| 54 | + { |
| 55 | + throw new NotImplementedException("EdgeMethods.ReadByGuid not yet implemented for LiteDB"); |
| 56 | + } |
| 57 | + |
| 58 | + public async IAsyncEnumerable<Edge> ReadByGuids(Guid tenantGuid, List<Guid> guids, [EnumeratorCancellation] CancellationToken token = default) |
| 59 | + { yield break; throw new NotImplementedException("EdgeMethods.ReadByGuids not yet implemented for LiteDB"); |
| 60 | + } |
| 61 | + |
| 62 | + public async IAsyncEnumerable<Edge> GetEdgesFromNode(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 63 | + { yield break; throw new NotImplementedException("EdgeMethods.GetEdgesFromNode not yet implemented for LiteDB"); |
| 64 | + } |
| 65 | + |
| 66 | + public async IAsyncEnumerable<Edge> GetEdgesToNode(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 67 | + { yield break; throw new NotImplementedException("EdgeMethods.GetEdgesToNode not yet implemented for LiteDB"); |
| 68 | + } |
| 69 | + |
| 70 | + public async IAsyncEnumerable<Edge> GetEdgesBetweenNodes(Guid tenantGuid, Guid graphGuid, Guid fromNodeGuid, Guid toNodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 71 | + { yield break; throw new NotImplementedException("EdgeMethods.GetEdgesBetweenNodes not yet implemented for LiteDB"); |
| 72 | + } |
| 73 | + |
| 74 | + public Task<int> GetRecordCount(Guid? tenantGuid, Guid? graphGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? filter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, Guid? markerGuid = null, CancellationToken token = default) |
| 75 | + { |
| 76 | + throw new NotImplementedException("EdgeMethods.GetRecordCount not yet implemented for LiteDB"); |
| 77 | + } |
| 78 | + |
| 79 | + public Task<Edge> Update(Edge edge, CancellationToken token = default) |
| 80 | + { |
| 81 | + throw new NotImplementedException("EdgeMethods.Update not yet implemented for LiteDB"); |
| 82 | + } |
| 83 | + |
| 84 | + public Task DeleteByGuid(Guid tenantGuid, Guid graphGuid, Guid edgeGuid, CancellationToken token = default) |
| 85 | + { |
| 86 | + throw new NotImplementedException("EdgeMethods.DeleteByGuid not yet implemented for LiteDB"); |
| 87 | + } |
| 88 | + |
| 89 | + public Task DeleteAllInTenant(Guid tenantGuid, CancellationToken token = default) |
| 90 | + { |
| 91 | + throw new NotImplementedException("EdgeMethods.DeleteAllInTenant not yet implemented for LiteDB"); |
| 92 | + } |
| 93 | + |
| 94 | + public Task DeleteAllInGraph(Guid tenantGuid, Guid graphGuid, CancellationToken token = default) |
| 95 | + { |
| 96 | + throw new NotImplementedException("EdgeMethods.DeleteAllInGraph not yet implemented for LiteDB"); |
| 97 | + } |
| 98 | + public async IAsyncEnumerable<Edge> ReadNodeEdges(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 99 | + { yield break; throw new NotImplementedException("EdgeMethods.ReadNodeEdges not yet implemented for LiteDB"); |
| 100 | + } |
| 101 | + |
| 102 | + public async IAsyncEnumerable<Edge> ReadEdgesFromNode(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 103 | + { yield break; throw new NotImplementedException("EdgeMethods.ReadEdgesFromNode not yet implemented for LiteDB"); |
| 104 | + } |
| 105 | + |
| 106 | + public async IAsyncEnumerable<Edge> ReadEdgesToNode(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 107 | + { yield break; throw new NotImplementedException("EdgeMethods.ReadEdgesToNode not yet implemented for LiteDB"); |
| 108 | + } |
| 109 | + |
| 110 | + public async IAsyncEnumerable<Edge> ReadEdgesBetweenNodes(Guid tenantGuid, Guid graphGuid, Guid fromNodeGuid, Guid toNodeGuid, List<string>? labels = null, NameValueCollection? tags = null, Expr? edgeFilter = null, EnumerationOrderEnum order = EnumerationOrderEnum.CreatedDescending, int skip = 0, [EnumeratorCancellation] CancellationToken token = default) |
| 111 | + { yield break; throw new NotImplementedException("EdgeMethods.ReadEdgesBetweenNodes not yet implemented for LiteDB"); |
| 112 | + } |
| 113 | + |
| 114 | + public Task<EnumerationResult<Edge>> Enumerate(EnumerationRequest query, CancellationToken token = default) |
| 115 | + { |
| 116 | + throw new NotImplementedException("EdgeMethods.Enumerate not yet implemented for LiteDB"); |
| 117 | + } |
| 118 | + |
| 119 | + public Task DeleteNodeEdges(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, CancellationToken token = default) |
| 120 | + { |
| 121 | + throw new NotImplementedException("EdgeMethods.DeleteNodeEdges not yet implemented for LiteDB"); |
| 122 | + } |
| 123 | + |
| 124 | + public Task DeleteNodeEdges(Guid tenantGuid, Guid graphGuid, List<Guid> nodeGuids, CancellationToken token = default) |
| 125 | + { |
| 126 | + throw new NotImplementedException("EdgeMethods.DeleteNodeEdges (multiple nodes) not yet implemented for LiteDB"); |
| 127 | + } |
| 128 | + |
| 129 | + public Task DeleteMany(Guid tenantGuid, Guid graphGuid, List<Guid> edgeGuids, CancellationToken token = default) |
| 130 | + { |
| 131 | + throw new NotImplementedException("EdgeMethods.DeleteMany not yet implemented for LiteDB"); |
| 132 | + } |
| 133 | + public Task DeleteByNodeGuid(Guid tenantGuid, Guid graphGuid, Guid nodeGuid, CancellationToken token = default) |
| 134 | + { |
| 135 | + throw new NotImplementedException("EdgeMethods.DeleteByNodeGuid not yet implemented for LiteDB"); |
| 136 | + } |
| 137 | + |
| 138 | + public Task<bool> ExistsByGuid(Guid tenantGuid, Guid edgeGuid, CancellationToken token = default) |
| 139 | + { |
| 140 | + throw new NotImplementedException("EdgeMethods.ExistsByGuid not yet implemented for LiteDB"); |
| 141 | + } |
| 142 | + } |
| 143 | +} |
| 144 | + |
0 commit comments