Skip to content

Commit

Permalink
add EdgeQL global support
Browse files Browse the repository at this point in the history
  • Loading branch information
Quin Lynch committed May 28, 2024
1 parent 560b997 commit 55d4c22
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/EdgeDB.Net.QueryBuilder/EdgeQL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ public static T Cube<T>(T value)
public static long Count<TType>(IQuery<TType> a) => default!;

public static EdgeDBTypeContainer<T> SchemaType<T>() => EdgeDBTypeContainer<T>.Create();

public static T Global<T>(string name) => default!;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace EdgeDB.Translators.Methods;

internal sealed class EdgeQLMethodTranslator : MethodTranslator<EdgeQL>
{
[MethodName(nameof(EdgeQL.Global))]
public void Global(QueryWriter writer, TranslatedParameter name)
{
writer.Append("global ", name);
}
}

0 comments on commit 55d4c22

Please sign in to comment.