Server.subroutes.database
Module Contents
Functions
|
This method return the info from a database in a better way, so that the column name is the key and the value is the value. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Attributes
- Server.subroutes.database.router
- Server.subroutes.database.getConnection()
- Server.subroutes.database.getResponseDict(query: str) dict
This method return the info from a database in a better way, so that the column name is the key and the value is the value.
- Parameters:
query – The normal SQL query
- Returns:
A dictionary with the column name as the key and the value as the value