diff --git a/src/EdgeDB.Net.QueryBuilder/EdgeQL.cs b/src/EdgeDB.Net.QueryBuilder/EdgeQL.cs index 1948a58..5ed1a74 100644 --- a/src/EdgeDB.Net.QueryBuilder/EdgeQL.cs +++ b/src/EdgeDB.Net.QueryBuilder/EdgeQL.cs @@ -61,4 +61,6 @@ public static T Cube(T value) public static long Count(IQuery a) => default!; public static EdgeDBTypeContainer SchemaType() => EdgeDBTypeContainer.Create(); + + public static T Global(string name) => default!; } diff --git a/src/EdgeDB.Net.QueryBuilder/Translators/Methods/EdgeQLMethodTranslator.cs b/src/EdgeDB.Net.QueryBuilder/Translators/Methods/EdgeQLMethodTranslator.cs new file mode 100644 index 0000000..3fec539 --- /dev/null +++ b/src/EdgeDB.Net.QueryBuilder/Translators/Methods/EdgeQLMethodTranslator.cs @@ -0,0 +1,10 @@ +namespace EdgeDB.Translators.Methods; + +internal sealed class EdgeQLMethodTranslator : MethodTranslator +{ + [MethodName(nameof(EdgeQL.Global))] + public void Global(QueryWriter writer, TranslatedParameter name) + { + writer.Append("global ", name); + } +}