1
Fork 0
mirror of https://github.com/Airsequel/AirGQL.git synced 2025-08-01 02:36:43 +03:00

Fix naming conflict file comment

This commit is contained in:
prescientmoon 2024-11-24 02:30:37 +01:00
commit 9f2888ddf5

View file

@ -1,11 +1,11 @@
{-| Each table, say `foo`, generates a `foo` and a `foo_by_pk`. If a table
named `foo_by_pk` also exists, this would create a naming conflict. This
issue also occurs in a few other places.
{-| Each table, say `foo`, generates a `foo` and a `foo_by_pk` query. If a
table named `foo_by_pk` exists, this introduces a naming conflict.
This issue also occurs in a few other places (like argument naming).
To solve this, we implement the `encodeOutsideList` function, which encodes a name
such that it does not conflict with any other name from a given list. This
is done by repeatedly appending _ at the end, until the name does not reside in
the given list anymore.
To solve this, we implement the `encodeOutsideList` function, which encodes a
name such that it does not conflict with any other name inside a given list.
This is done by repeatedly appending _ to the name until it does not reside
inside the given list anymore.
-}
module AirGQL.Introspection.NamingConflict (
encodeOutsideList,