MyApp v0.1.1 Bubbles.Url.Generator View Source

Provides functions for generating URL records.

Link to this section Summary

Functions

Generates and inserts a Url schema record with a unique URI if one already exists

Generates and inserts a Url schema record with a unique URI only if the provided uri string is different from uri attribute of Url record with id value of primary key

Link to this section Functions

Link to this function generate(uri, repo, url_schema, strategy) View Source

Generates and inserts a Url schema record with a unique URI if one already exists.

A generator strategy module is provided as the fourth parameter which is used to provide the unique URI string if one already exists among database records.

Link to this function generate(uri, repo, url_schema, strategy, id) View Source

Generates and inserts a Url schema record with a unique URI only if the provided uri string is different from uri attribute of Url record with id value of primary key.