MyApp v0.1.1 Bubbles.Url.GeneratorStrategy View Source
Implementes the Bubbles.Url.GeneratorStrategyBehaviour
behaviour with
default logic for generating unique URI strings among database records.
Link to this section Summary
Functions
Generates a unique URI string among database records based on provided URI string
Link to this section Functions
Generates a unique URI string among database records based on provided URI string.
The default logic appends a numeric suffix to the URI, making sure the
combination of URI and sufix is unique. For example, if foo/bar-baz
is
provided as first parameter, and there already is foo/bar-baz
and
foo/bar-baz-1
in the database, the default logic will generate
foo/bar-baz-2
.