Ecto.Utils
Convenience functions used throughout Ecto and imported into users modules.
Summary
| app_dir(app, path) | Receives an |
| parse_url(url) | Parses an Ecto URL of the following format:
|
| underscore(arg1) | Converts the given binary to underscore format |
Functions
Specs:
Receives an app and returns the absolute path from
the application directory. It fails if the application
name is invalid.
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.