__main__¶
Functions
database (db_url) |
Retrieves the orm.Database object from the passed db url. |
get_docker_client () |
Returns docker.APIClient object using the local environment variables |
is_sqlitedb_url (db_url) |
Returns True if the url refers to a sqlite database |
main () |
|
normalise_to_url (url_or_path) |
Normalises a disk path to a sqlalchemy url |
print_error (error) |
Prints an error message to stderr |
sqlite_url_to_path (url) |
Converts a sqlalchemy sqlite url to the disk path. |
sqlitedb_present (db_url) |
Checks if the db url is present. |
-
remoteappmanager.cli.remoteappdb.__main__.
database
(db_url)[source]¶ Retrieves the orm.Database object from the passed db url.
Parameters: db_url (str) – A string containing a db sqlalchemy url. Returns: Return type: orm.Database instance.
-
remoteappmanager.cli.remoteappdb.__main__.
get_docker_client
()[source]¶ Returns docker.APIClient object using the local environment variables
-
remoteappmanager.cli.remoteappdb.__main__.
is_sqlitedb_url
(db_url)[source]¶ Returns True if the url refers to a sqlite database
-
remoteappmanager.cli.remoteappdb.__main__.
normalise_to_url
(url_or_path)[source]¶ Normalises a disk path to a sqlalchemy url
Parameters: url_or_path (str) – a sqlalchemy url or a disk path Returns: A sqlalchemy url Return type: str
-
remoteappmanager.cli.remoteappdb.__main__.
print_error
(error)[source]¶ Prints an error message to stderr