@@ -275,6 +275,29 @@ ltree.Index(subpath) | index(ltree,
275275ltree.Index(subpath, 2) | index(ltree, subpath, 2)
276276LTree.LongestCommonAncestor(ltree1, ltree2) | lca(index(ltree1, ltree2)
277277
278+ ## Cube functions
279+
280+ The below translations are for working with cubes from the PostgreSQL [ ` cube ` ] ( https://www.postgresql.org/docs/current/cube.html ) extension. Use the < xref:NpgsqlTypes.NpgsqlCube > type to represent cube and invoke methods on it in EF Core LINQ queries.
281+
282+ .NET | SQL
283+ ----------------------------------- | --------------------
284+ cube1.Overlaps(cube2) | [ cube1 && cube2] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
285+ cube1.Contains(cube2) | [ cube1 @> cube2] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
286+ cube1.ContainedBy(cube2) | [ cube1 <@ cube2] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
287+ cube.NthCoordinate(n) | [ cube -> n + 1] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
288+ cube.NthCoordinateKnn(n) | [ cube ~ > n + 1] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
289+ cube1.Distance(cube2) | [ cube1 <-> cube2] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
290+ cube1.DistanceTaxicab(cube2) | [ cube1 <#> cube2] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
291+ cube1.DistanceChebyshev(cube2) | [ cube1 <=> cube2] ( https://www.postgresql.org/docs/current/cube.html#CUBE-OPERATORS-TABLE )
292+ cube1.Union(cube2) | [ cube_union(cube1, cube2)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
293+ cube1.Intersect(cube2) | [ cube_inter(cube1, cube2)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
294+ cube.Enlarge(r, n) | [ cube_enlarge(cube, r, n)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
295+ cube.Dimensions | [ cube_dim(cube)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
296+ cube.IsPoint | [ cube_is_point(cube)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
297+ cube.ToSubset(indexes) | [ cube_subset(cube, indexes + 1)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
298+ cube.LowerLeft[ n] | [ cube_ll_coord(cube, n + 1)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
299+ cube.UpperRight[ n] | [ cube_ur_coord(cube, n + 1)] ( https://www.postgresql.org/docs/current/cube.html#CUBE-FUNCTIONS-TABLE )
300+
278301## Aggregate functions
279302
280303The PostgreSQL aggregate functions are documented [ here] ( https://www.postgresql.org/docs/current/functions-aggregate.html ) .
0 commit comments