Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhghomon committed Feb 7, 2024
1 parent 9d5270a commit 1933223
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/guides/tutorials/rust_axum.rst
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,14 @@ an existing city (i.e. the same location).

.. code-block:: sdl-diff
type City {
required name: str;
required latitude: Latitude;
required longitude: Longitude;
multi conditions := (select .<city[is Conditions] order by .time);
+ key := .name ++ <str><int64>.latitude ++ <str><int64>.longitude;
+ constraint exclusive on (.key);
}
type City {
required name: str;
required latitude: Latitude;
required longitude: Longitude;
multi conditions := (select .<city[is Conditions] order by .time);
+ key := .name ++ <str><int64>.latitude ++ <str><int64>.longitude;
+ constraint exclusive on (.key);
}
You could give this or another method a try if you are feeling ambitious.

Expand Down Expand Up @@ -1058,7 +1058,7 @@ into a ``LocalDatetime`` instead of a ``String``.
.. lint-off
Conversely, the unofficial
`edgedb-query-derive <https://docs.rs/edgedb-query-derive/latest/edgedb_query_derive/attr.select_query.html>`
`edgedb-query-derive <https://docs.rs/edgedb-query-derive/latest/edgedb_query_derive/attr.select_query.html>`_
crate provides a way to turn Rust types into EdgeQL queries using its
``.to_edge_query()`` method.

Expand Down

0 comments on commit 1933223

Please sign in to comment.