Ecto.Utils

Convenience functions used throughout Ecto and imported into users modules.

Source

Summary

app_dir(app, path)

Receives an app and returns the absolute path from the application directory. It fails if the application name is invalid

parse_url(url)

Parses an Ecto URL of the following format: ecto://username:password@hostname:port/database?opts=123 where all options but the database is optional

underscore(arg1)

Converts the given binary to underscore format

Functions

app_dir(app, path)

Specs:

Receives an app and returns the absolute path from the application directory. It fails if the application name is invalid.

Source
parse_url(url)

Parses an Ecto URL of the following format: ecto://username:password@hostname:port/database?opts=123 where all options but the database is optional.

If username is not specified, $PGUSER or $USER will be used. password defaults to $PGPASS. hostname defaults to $PGHOST or localhost.

Source
underscore(arg1)

Converts the given binary to underscore format.

Source