florist.api.db.config module

Database configuration parameters.

class DatabaseConfig[source]

Bases: object

Database configuration parameters.

classmethod get_mongodb_db_name()[source]

Return the MongoDB database name.

Return type:

str

Returns:

(str) the MongoDB database name.

classmethod get_mongodb_uri()[source]

Return the MongoDB URI.

Return type:

str

Returns:

(str) the MongoDB URI.

classmethod get_sqlite_db_path()[source]

Return the SQLite database path.

Return type:

str

Returns:

(str) the SQLite database path.

mongodb_db_name = 'florist-server'
mongodb_uri = 'mongodb://localhost:27017/'
sqlite_db_path = 'florist/api/client.db'